-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only Sync if Newer #7
Comments
I was able to implement the settings part (a checkbox in the config menu) but I got stuck when I wanted to use the How is this supposed to work with a wireless connected device?
I think the only way to get this data is if koreader writes a timestamp/last read state into the metadata file. |
Also see #2 (comment) |
How does this relate to #8? Do we need this issue to work on an improvement for wirelessly connected devices? Or may it be closed? |
While I added the ability to "sync only if more recent" in #8 it does not work for (at least) wireless connected devices because the That is why I added the "fallback" for this option in case no To properly obtain the last modified date for all cases (wireless, and I guess SD card too?) either koreader needs to store this info inside the sidecar as well or we have to get access to the |
going to close since no response from the author, let me know if you still have this issue |
Feature Request
It would be really cool if the plugin would only sync if the data from koreader is newer than the data currently stored in calibre.
Usecase
I have two devices where I read on.
If I read a book to 50% on device A, sync it the percent read is set to 50.
Then connect device B where the book is still at 20% because it was not opened/synced by koreader, sync it to calibre the percent read is changed to 20.
This should not happen and the sync should be aborted because the data in calibre is newer.
Similar Implementations
I took a look at how Kobo Utils does this:
They have a setting
store_if_more_recent
and check thecurrent_last_read
vs thenew_last_read
status (in their jobs.py file). This can only be done if thelast_read
is stored in a column.Possible Implementation
I assume the last read date is equal to the
date_sidecar_modified
field which is already implemented in the latest beta.A new setting could be introduced similar to Kobo Utils:
Sync only if more recent
If this settings is checked, and the
date_sidecar_modified
is stored in a column, it can be checked if thedate_sidecar_modified
from the devices koreader is newer than the storeddate_sidecar_modified
. If it is older,sync_to_calibre
(action.py) should not callupdate_metadata
for that current book.The text was updated successfully, but these errors were encountered: