Thread: update_modified
View Single Post
Old 07-18-2025, 01:29 AM   #1
zje
Member
zje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterzje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterzje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterzje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterzje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterzje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterzje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterzje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterzje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterzje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterzje can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 14
Karma: 12990
Join Date: Jun 2019
Location: My own private reality
Device: Nook Classic, Kindle Fire 7, Kindle Gen 7 Paper White, Fire 8 HD
update_modified

I was getting miffed about calibre setting 'Modified Date' on a book whenever it unexpectedly changed something in the metadata for a group of unrelated books. I suspect that it was due to tag changes or something similar that had a global impact.

To resolve this issue I create update_modified, an offline tool that will, by default, reset the 'Modified Date' for a book to the youngest ebook file in that book's filesystem directory. It will not use the date of the opf file unless you request that the opf file date be used.
  • The tool is written in .net 9 since that is what I've been using at work.
  • It is offline since it uses 'calibredb' for all the database work. Seemed more future proof than direct sqlite.

The source and binaries are available at https://github.com/elamide/update_modified. Usage is described on the github readme.

-Tim
zje is offline   Reply With Quote