[169] plex_collectionless fix

This commit is contained in:
meisnate12 2023-04-06 09:05:48 -04:00
parent b3021d5ed4
commit 65015d7041
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
1.18.3-develop168 1.18.3-develop169

View file

@ -1045,13 +1045,13 @@ class Plex(Library):
for col in good_collections: for col in good_collections:
logger.info(col.title) logger.info(col.title)
logger.info("") logger.info("")
collection_indexes = [c.title for c in good_collections] collection_indexes = [str(c.title).lower() for c in good_collections]
all_items = self.get_all() all_items = self.get_all()
for i, item in enumerate(all_items, 1): for i, item in enumerate(all_items, 1):
logger.ghost(f"Processing: {i}/{len(all_items)} {item.title}") logger.ghost(f"Processing: {i}/{len(all_items)} {item.title}")
add_item = True add_item = True
for collection in item.collections: for collection in item.collections:
if collection.tag in collection_indexes: if str(collection.tag).lower() in collection_indexes:
add_item = False add_item = False
break break
if add_item: if add_item: