You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have my plex_collectionless setup, and in general it is working fine. However I've noticed that some movies get added to my collectionless collection, even though they are inside of collections that should not be excluded. It has appeared (thus far) to be pretty random which movies it affected. I would run into cases where the same Collection would have some movies added to the collectionless collection and some wouldn't.
I've done a bit of debugging, and I think I've got a reasonable handle on why these particular movies are affected but others are not.
To see exactly what collections were in the collection_indexes and what collections were in item.collections to figure out what was going on, and what I've seen is that item.collections only returns the first two collections (in order of the collection tags in the item's individual tags), and any other collections are truncated.
So for example, in my case the "Black Panther" collection has the "Black Panther" movie. The collection_indexes contains "black panther", but when I look at item.collections I only see entries for two collections, "Marvel Cinematic Universe", and "All Movies".
Looking at Black Panther's collection tags, I see this:
And if I reorder them so Black Panther comes first, then item.collections still contains only two collections, but one of those includes the Black Panther collection, and everything works as expected.
I saw that it appeared that PMM was using the Python plexpai project to query Plex, so I did try doing the same thing with plexapi directly, and they seem to have similar behavior:
Then I get all 5 collections as expected, however it appears that while PMM is using plexapi, it's manually constructing the queries, so I'm not sure how to convert that to what PMM is doing.
Relevant Collection/Overlay/Playlist Definition
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Version Number
1.19.0
What branch are you on?
master
Describe the Bug
I have my
plex_collectionless
setup, and in general it is working fine. However I've noticed that some movies get added to my collectionless collection, even though they are inside of collections that should not be excluded. It has appeared (thus far) to be pretty random which movies it affected. I would run into cases where the same Collection would have some movies added to the collectionless collection and some wouldn't.I've done a bit of debugging, and I think I've got a reasonable handle on why these particular movies are affected but others are not.
What I've done is drop some debugging into this area https://github.com/meisnate12/Plex-Meta-Manager/blob/3bf1c25990a0eee9e1c907e516795fd8a92b0afb/modules/plex.py#L1057-L1066
To see exactly what collections were in the
collection_indexes
and what collections were initem.collections
to figure out what was going on, and what I've seen is thatitem.collections
only returns the first two collections (in order of the collection tags in the item's individual tags), and any other collections are truncated.So for example, in my case the "Black Panther" collection has the "Black Panther" movie. The
collection_indexes
contains"black panther"
, but when I look atitem.collections
I only see entries for two collections, "Marvel Cinematic Universe", and "All Movies".Looking at Black Panther's collection tags, I see this:
And if I reorder them so Black Panther comes first, then
item.collections
still contains only two collections, but one of those includes the Black Panther collection, and everything works as expected.I saw that it appeared that PMM was using the Python plexpai project to query Plex, so I did try doing the same thing with plexapi directly, and they seem to have similar behavior:
Prints out the same two collections, and misses the other 3.
However, if I change that to instead say:
Then I get all 5 collections as expected, however it appears that while PMM is using plexapi, it's manually constructing the queries, so I'm not sure how to convert that to what PMM is doing.
Relevant Collection/Overlay/Playlist Definition
No response
Logs
No response
The text was updated successfully, but these errors were encountered: