02-27-2021, 05:17 AM | #1 |
Enthusiast
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
[Possible Bug] Unchanged Modification Date after Sigil edit
Hi,
newest Calibre 5.12, Sigil 1.2.1: After editing an EPUB with Sigil, saving and quitting, the Book modification date in Calibre stays unchanged. -- regards, -- recook |
02-27-2021, 06:16 AM | #2 |
Well trained by Cats
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Modified is a Calibre action (because Calibre knows when it does a change)
OTOH , you just used Sigil. Calibre has no idea if you viewed, edited or aborted a session. |
Advert | |
|
02-27-2021, 09:04 AM | #3 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
But for epub3 couldn't calibre just use the official metadata dcterms:modified metadata item since it includes date and time down to the second as to when the file was last modified. That is part of the epub3 spec to update/change that anytime the edited epub3 is written.
Epub2 does not typically include the exact time in its modification date, so it probably can only be used if later than whatever value calibre sets now. |
02-27-2021, 10:00 AM | #4 |
Wizard
Posts: 1,089
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
Still not possible. Calibre does not have a way to know that the metadata in the epub3 file has actually been changed, when the modification happens by another program outside of calibre's control. Maybe a plugin that can communicate with both programs, if someone is interested in writing it.
|
02-27-2021, 10:55 AM | #5 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The modified date in calibre refers to when any metadata associated with the book is changed, it *does not* know anything about changes to individual files in the book record.
|
Advert | |
|
02-27-2021, 11:44 AM | #6 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Oh, that makes sense. And calibre would show the dc:terms modified value in its metadata as well so the user gets both.
|
02-27-2021, 03:02 PM | #7 | |
Enthusiast
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
Hi,
Quote:
-- regards, -- recook |
|
02-27-2021, 03:44 PM | #8 | |
null operator (he/him)
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
When you edit a format file (epub or azw3) with the calibre editor, the last_modified/Modified column in the book's library metadata is not changed. The formats_modtimes(date_format) template function could be used to populate a custom column with file system Date modified values, but it would probably carry a performance penalty. See The calibre template language BR |
|
03-03-2021, 10:13 AM | #9 | |
Enthusiast
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
Quote:
Sorry i didn't have enough motivation yet to learn the template language (and Python). Is there some "Quick start" article i have overlooked? -- regards, -- recook |
|
Tags |
calibre, modification date, possible bug, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sorting books by last modification date | roger64 | KOReader | 0 | 10-22-2020 08:34 AM |
OPDS Content Server to provide last modification date | cedhax | Related Tools | 9 | 09-13-2016 07:11 AM |
Automatic date of modification after saving EPUB file in Sigil | Chang | Sigil | 1 | 11-20-2015 05:00 AM |
Edit metadata publish date for a date BC | RickLeFeuvre | Calibre | 2 | 08-28-2014 11:53 PM |
Automatic date of modification and creation | paulpeer | Sigil | 6 | 04-05-2010 11:15 AM |