diff --git a/modules/plex.py b/modules/plex.py index e405266a..c9dc1150 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -501,9 +501,13 @@ class Plex(Library): elif isinstance(data, Collection): return data 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: 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") def validate_collections(self, collections):