Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-27-2021, 05:17 AM   #1
recook
Enthusiast
recook began at the beginning.
 
recook's Avatar
 
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
Question [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
recook is offline   Reply With Quote
Old 02-27-2021, 06:16 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,779
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.
theducks is offline   Reply With Quote
Old 02-27-2021, 09:04 AM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,633
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.
KevinH is offline   Reply With Quote
Old 02-27-2021, 10:00 AM   #4
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,085
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.
capink is offline   Reply With Quote
Old 02-27-2021, 10:55 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
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.
kovidgoyal is online now   Reply With Quote
Old 02-27-2021, 11:44 AM   #6
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,633
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.
KevinH is offline   Reply With Quote
Old 02-27-2021, 03:02 PM   #7
recook
Enthusiast
recook began at the beginning.
 
recook's Avatar
 
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
Hi,

Quote:
Originally Posted by kovidgoyal View Post
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.
But it could know because i start Sigil through the Pligin "Open With" and subsequently watch the file date, no?
--
regards,
-- recook
recook is offline   Reply With Quote
Old 02-27-2021, 03:44 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,553
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by recook View Post
But it could know because i start Sigil through the Pligin "Open With" and subsequently watch the file date, no?
Calibre's last_modified/Modified column refers to the date/time the metadata, as represented in the library database, was last changed.

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
BetterRed is offline   Reply With Quote
Old 03-03-2021, 10:13 AM   #9
recook
Enthusiast
recook began at the beginning.
 
recook's Avatar
 
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
Quote:
Originally Posted by kovidgoyal View Post
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.
The quickest workaround i found is to make a trivial edit to a metadata field, like: focus title, F2, Enter. Presto, modification date changed.

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
recook is offline   Reply With Quote
Reply

Tags
calibre, modification date, possible bug, sigil


Forum Jump

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


All times are GMT -4. The time now is 09:33 AM.


MobileRead.com is a privately owned, operated and funded community.