-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Added option in order to synchronize only selected shelves on Kobo device #1852
Added option in order to synchronize only selected shelves on Kobo device #1852
Conversation
I was just thinking how this would be a perfect solution to multi user Kobo sync |
I like this aproach, almost perfect solution to large libraries sync |
@OzzieIsaacs could you check it? |
I've not so much spare time, but i'll try. i'm running a docker container but I'll try to make an image |
I have tested your code, nice work!!! I found a small flaw, when you have removed books from the shelves and from your kobo. The cps keep syncing some information about the removed books from the shelves. That kind of information will eventually overwhelming the the sync duration/time and gives timeouts. I have tested that with alot of books and can confirm that. For each book that have been deleted from the self you will see the following information in the sync output: {
"ChangedReadingState":{
"ReadingState":{
"Created":"2021-01-18T20:03:46Z",
"CurrentBookmark":{
"LastModified":"2021-03-12T21:01:19Z"
},
"EntitlementId":"67b43ab5-ebad-4dae-8aed-ffa3ac26a3f8",
"LastModified":"2021-03-12T21:01:19Z",
"PriorityTimestamp":"2021-03-12T21:01:19Z",
"Statistics":{
"LastModified":"2021-03-12T21:01:19Z"
},
"StatusInfo":{
"LastModified":"2021-03-12T21:01:19Z",
"Status":"ReadyToRead",
"TimesStartedReading":0
}
}
}
}, Can you remove that kind of information so that the sync keeps clean and fast only for the books that are on the shelves. |
Could you try it again, please? I think I've solved it. |
Any chance this is going to get merged soon? Super excited to finally be able to sync to my Kobo! |
I have to finish some test on the development branch and then I’m ready for this one |
I have tested this version and looks ok for me |
I started working on it. My findings so far:
There is nothing to do for you right now, I fiexed both and will now start testing the new functionality |
Well, about the first issue. I decided to remove all shelves because there is no way to know which shelves had have the flag in previous sync, and not in current sync. I thought it was low price to allow to remove synchronised shelves. |
Second issue: it‘s a change to the previous behavior, I‘m running automated tests for it, I think I checked it with the real sync for how it should work |
Regarding first issue, I think we might misunderstood each other. My use case is the following: |
At this point, maybe we should change the main flow. I mean, we should add a new flag in general config in order to choose if user wants to sync all books and shelves or just selected ones. If flag is false the behaviour is the old one and the flag on shelves must disappear. If flag is true, the flag on shelves appears and just shelves with this flag set will be sync. Just changing this line: https://github.com/janeczku/calibre-web/pull/1852/files#diff-07a86a0f46bee91e3fe947bec8a613581aaa97fb5d1430199bc784844701c10cR156 only_kobo_shelves = config.config_kobo_shelves_sync # New config flag |
Hello, any news ? This seem's perfect for my usage. |
Am I correct in assuming that this change is now available in v0.6.12 Pilar? If so I tried testing it through the linuxserver.io docker build. I can switch the Kobo sync on under settings and I can generate a token for a user but I do not see the "Synchronize with Kobo device" switch on the Shelf edit screen. I only see "Title" and "Share with Everyone". Any idea what I am missing to make this work? |
If I remember correctly, I had to first create a new shelf and enable the "sync to Kobo" flag on the shelf. I could then add books to it and have them sync. Edit: but I'm also running nightly, not a tagged build. |
Were you able to make it work? I'm having the same issue, running v0.6.12. Maybe it's just available in the nightly builds for now? Are they stable enough for daily usage? |
I was not able to get it to work with the "latest" version of the linuxserver.io image. But using the nightly version of that image I got it working. The code for it is in master but not in the v0.6.12 release. |
Weird, I switched to nightly but still can't see the option... |
I encounter the same -> after removing books from the shelf it doesn't get removed from the kobo device. not sure if this is expected behavior. |
Maybe, it solves/helps: #1276