mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 20:43:07 +00:00
fixed smart collection items
This commit is contained in:
parent
0c67bfb731
commit
b751dfe6d8
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,7 @@ import glob, logging, os, requests
|
|||
from modules import util
|
||||
from modules.meta import Metadata
|
||||
from modules.util import Failed
|
||||
import plexapi
|
||||
from plexapi import utils
|
||||
from plexapi.exceptions import BadRequest, NotFound, Unauthorized
|
||||
from plexapi.collection import Collections
|
||||
|
@ -638,7 +639,11 @@ class PlexAPI:
|
|||
if smart_label_collection:
|
||||
return self.get_labeled_items(collection.title if isinstance(collection, Collections) else str(collection))
|
||||
elif isinstance(collection, Collections):
|
||||
return self.query(collection.items)
|
||||
if self.smart(collection):
|
||||
key = f"/library/sections/{self.Plex.key}/all{self.smart_filter(collection)}"
|
||||
return self.Plex._search(key, None, 0, plexapi.X_PLEX_CONTAINER_SIZE)
|
||||
else:
|
||||
return self.query(collection.items)
|
||||
else:
|
||||
return []
|
||||
|
||||
|
|
Loading…
Reference in a new issue