Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 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
Old Yesterday, 09:59 AM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Did you take a look at the Job Spy plugin? It has quite a few options for working with the Last-Modified field from within calibre itself.
PeterT is offline   Reply With Quote
Old Yesterday, 08:06 PM   #3
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: 21,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by PeterT View Post
Did you take a look at the Job Spy plugin? It has quite a few options for working with the Last-Modified field from within calibre itself.
Or capink's Last Modified plugin.

BR
BetterRed is online now   Reply With Quote
Old Yesterday, 10:02 PM   #4
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
Quote:
Originally Posted by PeterT View Post
Did you take a look at the Job Spy plugin? It has quite a few options for working with the Last-Modified field from within calibre itself.
I came up through the UNIX ecosystem. Job Spy looks to be an amazing multi-tool but I only needed something to manage the 'Last Modified' column. Job Spy is overkill for what I need.
zje is offline   Reply With Quote
Old Yesterday, 10:08 PM   #5
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
Quote:
Originally Posted by BetterRed View Post
Or capink's Last Modified plugin.

BR
The Last Modified plugin does not manage the 'Last Modified' date. It allows you to use a custom field as a last modified date. I did try the plugin but in the end it did not do what I wanted which was to manage the 'Last Modified' column supplied by Calibre. It was the impetus for making the tool 'offline' since it is not possible to manage the 'Last Modified' column from within Calibre due to Calibre being able to modify the column value at unpredictable times.
zje is offline   Reply With Quote
Old Today, 12:05 AM   #6
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: 21,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by zje View Post
The Last Modified plugin does not manage the 'Last Modified' date. It allows you to use a custom field as a last modified date. I did try the plugin but in the end it did not do what I wanted which was to manage the 'Last Modified' column supplied by Calibre. It was the impetus for making the tool 'offline' since it is not possible to manage the 'Last Modified' column from within Calibre due to Calibre being able to modify the column value at unpredictable times.
If one acknowledges that the calibre database schema adheres to strict 3NF rules then the updates to the Modified/last modified column are predictable… IMO.

I maintain a book level timestamped log of actions in OneNote with a onenote:// URL in the book's Links/#links custom column.

BR
BetterRed is online now   Reply With Quote
Old Today, 12:36 AM   #7
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by zje View Post
I came up through the UNIX ecosystem. Job Spy looks to be an amazing multi-tool but I only needed something to manage the 'Last Modified' column. Job Spy is overkill for what I need.
Think of Job Spy as BusyBox; a single executable with multiple entry points depending on how you invoke it
PeterT is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 09:53 PM.


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