mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
Adding movies to collections broken in 10.11 #7002
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @theguymadmax on GitHub (May 11, 2025).
Description of the bug
Adding movies to collections broken in 10.11. Neither by enabling "Automatically add to collection" or by using the the TMBD Boxset plugin in works.
Scenario 1 seems to be regression from: #13827
Reproduction steps
Scenario 1:
Scenario 2:
What is the current bug behavior?
Both situations leads to no creation of collections/boxsets.
What is the expected correct behavior?
Collections are created.
Jellyfin Server version
Master
Specify commit id
a7bb3ea214Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.11 (Master)
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response
@allesmi commented on GitHub (May 12, 2025):
I have investigated this bug a bit but I am not sure if I can provide a fix in reasonable time. Maybe someone else can save some time on debugging with this information. I do not have in-depth understanding of the code, please correct me if something is wrong.
The collections should be created/added in the method
MediaBrowser.Controller.Library.ILibraryManager.GetItemList. There is call to the Library Manager that returns 0 movies even though there should be some (tested with a fresh library consisting of four movies that should be part of the same collection). Digging deeper into the code here results in this query to Sqlite:It seems the where-clause of the innermost query is mixed up. With the split of the AncestorIds parameter substituted this reads as:
Swapping the filter on ParentItemId and ItemId to the following returns the expected result set (multiple times, I assume because of the left joins).
@allesmi commented on GitHub (May 15, 2025):
@theguymadmax Scenario 2 is probably still open - on first testing these two seemed unrelated.
@theguymadmax commented on GitHub (May 15, 2025):
Thanks for the fix and yes, the second scenario seems to be a separate issue. I only put it in here to try and prevent unnecessary comments from people "Did you try using boxset plugin" "or I'm having the same issue on 10.10.7" -something along those lines.
I'll recheck the the behavior and create a separate issue depending on results.