12-07-2011, 08:25 AM | #1 |
Wizard
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
Import OS modify date while Adding books?
Anyone know of a way to import the OS file modify date into "Date" or a custom column while Adding?
I haven't been using the default ModifiedDate column but assume it reflects when any changes are made to the db rather than the file, and that it wouldn't show the file's OS modify date? |
12-07-2011, 10:21 AM | #2 |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Are you asking that calibre set some date to the modtime of the source format (the one outside calibre's library) when you import a book? Your second sentence implies something else -- that you want to see the modtimes of a format inside calibre's library. Perhaps you mean import a format? Or something else?
|
Advert | |
|
12-07-2011, 11:34 AM | #3 | |
Wizard
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
Quote:
Last edited by unboggling; 12-07-2011 at 11:39 AM. |
|
12-07-2011, 11:51 AM | #4 |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
So either you have only one format per book or you want the date of the last format you added? But this doesn't matter, really.
I assume the date is from the file (the format) that you are importing, not the date of the format inside calibre's library. If so, then the answer is 'maybe'. Looking at the code, I see that adding a format via the edit metadata (single) dialog sets the modtime of the format in calibre's library to the modtime of the file being added. You can get that modtime using the template function formats_modtimes. If the book has more than one format, you would need to know which format you are interested in. As far as I can tell, adding a book + format using the add function does not set the modtime in this way. |
12-07-2011, 12:09 PM | #5 |
Wizard
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
chaley, thanks for the clarification. I didn't think there was a way to do extract that info in a bulk Add, but wanted to make sure.
Yes, the last-modified date of the file (format) being imported, not the date the file (format) was copied into calibre. Re the one format per book, that was my other thread-question asking if there was a way to do one-format-per-book during a bulk add. Re different mod-dates for each format in a record with multiple formats: yes, that is one problem. Re template function " formats_modtimes " -- thanks, I'll look into that. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import order when adding multiple books | Sparkling | Library Management | 5 | 07-08-2011 07:41 AM |
Adding date (and maybe other info) to custom cover image | chewi | Recipes | 7 | 03-16-2011 04:21 AM |
Noob import question - adding books by genre, ln, fn . . . | deleteriousone | Library Management | 16 | 02-16-2011 05:55 AM |
Import Date: Bug or Feature? | DobraGolonka | Calibre | 19 | 08-24-2010 11:47 AM |
Date in Calibre? Adding books in the future? | wygit | Calibre | 2 | 11-04-2009 11:12 AM |