View Single Post
Old 06-16-2022, 01:46 AM   #29
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,884
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by davidfor View Post
I don't know of any devices that do that. But, it wouldn't be unreasonable to. And I considered it for the KoboTouch driver. The issue is knowing when the device was last connected. That isn't stored anywhere. There is a last connection date in the driveinfo.calibre file, but, it is updated as soon as the device is connected. Which isn't useful for working out the changes since the last time the device was connected.

But, the modified date is used as part of the backup of metadata to the OPF files in the book directories. Changing a tag like has been discussed will trigger the update of the modified date and then OPFs to be updated.
I can't see a last_modified date element in the book metadata,opf file. So, what is the database last_modified value compared against to trigger the write of a fresh book data metadata.opf file?

I added 'calibre' as a tag to the Quick Start Guide at 2022-06-16 15:05:54, but I can't see anything like that date in the .opf.

Click image for larger version

Name:	Screenshot 2022-06-16 150901.jpg
Views:	551
Size:	348.1 KB
ID:	194397

Its not the file system date_modified either. I changed that to 2022-07-16, and then added another tag - and a fresh opf file was written.

Click image for larger version

Name:	Screenshot 2022-06-16 152543.jpg
Views:	87
Size:	353.6 KB
ID:	194398

BR

Last edited by BetterRed; 06-16-2022 at 01:56 AM.
BetterRed is online now   Reply With Quote