extra debug

pull/541/head
meisnate12 3 years ago
parent f221c9bf6f
commit 2b67b991d4

@ -501,9 +501,13 @@ class Plex(Library):
elif isinstance(data, Collection): elif isinstance(data, Collection):
return data return data
else: else:
for d in self.search(title=str(data), libtype="collection"): cols = self.search(title=str(data), libtype="collection")
for d in cols:
if d.title == data: if d.title == data:
return d return d
for d in cols:
logger.debug(f"Found: {d.title}")
logger.debug(f"Looking for: {data}")
raise Failed(f"Plex Error: Collection {data} not found") raise Failed(f"Plex Error: Collection {data} not found")
def validate_collections(self, collections): def validate_collections(self, collections):

Loading…
Cancel
Save