-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Duplicate readlists and missed books in readlists on scan with StoryArc in ComicInfo.xml. #1317
Comments
I don't quite understand what the problem is, could you explain more or provide some screenshots maybe? |
can you retrieve the API response for |
Side question, how many threads did you configure for background tasks? |
I configured 8 threads for background tasks |
can you set it to 1 and try if you have the problem ? I surmise that processing in parallel may create duplicate read lists. |
I'll try that now. By the way for your first question, I'm not sure how to do that, can you point me in a general direction to get that for you? |
I figured it out. I'll get the API response after I finish testing 1 thread. |
The library hasn't finished scanning yet but I'm 100% confident in saying setting background tasks to 1 thread has completely fixed the issues. Do you still want the api response for readlists? |
I have been testing this on my side, even though i could not reproduce the duplicate read list (probably because my database / cpu are too fast on my dev machine), i can see that it could happen. I could definitely reproduce the issue where a read list did not contain all the items it was supposed to contain. It's a multi-threading issue, there should be some resource locking when creating/updating readlists (and collections too), which is missing. I am adding that now. |
The fix won't remove the duplicates though, you will need to do the cleanup yourself. |
Do you mean the fix won't remove duplicates already in the library? Or are duplicates just something that can't be prevented with more than one thread? |
the fix will not remove the existing duplicates, you will have to delete the duplicates yourselves. the fix will prevent new duplicates (hopefully!!) |
That's not a problem at all, thanks so much for taking the time on this. |
🎉 This issue has been resolved in |
Steps to reproduce
Scan library with many readlists set with StoryArc in embedded ComicInfo file.
Expected behavior
There shouldn't be duplate readlists and all books should be added to readlists from a normal scan.
Actual behavior
I have a library full of oneshots with many of them being in a readlist so I don't know if this is an issue for books in series or not. I noticed that occasionally a duplicate readlist with a single book in it will be created and sometimes books won't be added to a readlist unless you specifically scan those books for metadata.
Logs
No response
Komga version
1.8.2
Operating system
Windows 10
Installation method
from download.komga.org
Other details
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: