-
Notifications
You must be signed in to change notification settings - Fork 502
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
[Bug]: missing files in different libraries #3826
Comments
If you do a manual scan of the library does it pull in those items? |
i just tried a manual scan again and many of those missing were detected 👍 |
I recommend disabling the folder watcher and using scheduled scans that are staggered in time if you are using the same paths for multiple libraries. I didn't design the scanner for this use-case and hadn't considered it. If the watcher detects an update to a file it "locks" the file from being scanned again, so the first library's folder watcher that detects the change is going to be the one that gets it. It's unlikely that the scanner gets re-designed to support this so we might consider adding some warning in the library modal. I'm not sure what your actual issue is though because running a manual scan on the library should be no problem as long as the other library with the same folder path isn't also scanning it. I was just testing having multiple libraries with the same folder path a few days ago and it works so long as the library scans don't overlap eachother. |
yes something like a warning to inform the user about this would solve the issue for now in order to minimize the impact and keep the user informed, previously when i ran the manual scan multiple times and i didn't see any new books and it's taking long therefore cancelled the task thinking this won't fix it now 1,000 items got added to my "All" library to fix this the database should be adjusted to take into account each file is in which folder, and each folder is assigned to which librar(ies) so if a file is detected by the watcher or the scanner, the folder is taken into account then query which library also has this folder path. as an extra measure it would need to look at the whole path since: library 2 access: therefore if a file is detected in library 1 then it should also be added to library 2 |
It is not planned to update the scanner to support multiple libraries pointing to the same folders. But we can leave this issue open for adding a warning message. |
What happened?
I have libraries
Name: All
Folders: /path/ebooks /path/audiobooks
Name: Ebooks
Folders: /path/ebooks
Name: Audiobooks
Folders: /path/audiobooks
The "All" library is missing some audiobooks/ebooks that the niche library (audiobooks/ebooks) does detect and the json file is present
What did you expect to happen?
For items in different libraries that share a folder path, to be showing all the contents of the path
Steps to reproduce the issue
Audiobookshelf version
v2.17.7
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
None
Logs
Additional Notes
rescanning, matching, or creating a new folder for the item doesn't fix the issue (sometimes creating another folder fixes it but not always)
The text was updated successfully, but these errors were encountered: