Quote:
Originally Posted by the_callant
Is there a simple way to automatically add or change a date within calibre. I have created a custom column which gives the date that a book is added to my Calibre Library. I have been manually entering this date when I have added books, so I now have a column where sometimes there is a date, but sometimes it is blank. Is there a way of setting up a script which would check if the field was empty, then copy across the existing date field content if it is empty and automatically set the date added to the todays date when I add the book?
The first question really is can it be done?
If it can is there a prewritten script or where would i look to try and create one?
|
There is no automatic "scripting" available in calibre to modify columns. And as far as I can see, there are no easy solutions.
You could possibly do this with by replacing the file import plugins with your own. You would provide a post_import hook that would modify the date field whenever a format was imported.
You could write a user interface plugin that sets that field to "now" if the field is empty. However, this doesn't seem any better than selecting all books with the field empty then using bulk metadata edit to set the field to now.
Of course, you could change calibre itself to do what you want. You would then need to merge your changes into calibre whenever you upgrade.