janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
13.19k stars 1.41k forks source link

Kobo: sync does not update books which have been modified since the last sync #3133

Open tsheinen opened 3 months ago

tsheinen commented 3 months ago

Is your feature request related to a problem? Please describe. I use calibre to store serialized fiction which is updated on a semi-frequent basis (whenever a new chapter is released). Currently, a book which has already been synced is explicitly excluded and I need (I think? I suppose there might be a better way) to force a full sync to get the new version.

Describe the solution you'd like

Ideally I think that the exclusion for already synced books (https://github.com/janeczku/calibre-web/blob/master/cps/kobo.py#L197) should also compare the last sync time to the book's last modified time and mark changed books to be synced as well.

Thanks!

OzzieIsaacs commented 3 months ago

Kobo only syncs the metadata of a book with an ID once, changes applies later to the metadata don't lead to updated metadata on the kobo side (there are several issues regarding this):

2816

tsheinen commented 3 months ago

Ah -- i think this is a different issue. In my case the actual content of the book has changed. If I modify the epub file, regenerate the kepub, and then redownload on my kobo (by removing through the UI and downloading again) the change is reflected as expected. If I reset the sync database in calibre-web and then trigger a sync Kobo will then re-download every book