[169] plex_collectionless fix

pull/1365/head
meisnate12 2 years ago
parent b3021d5ed4
commit 65015d7041

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

@ -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:

Loading…
Cancel
Save