From 93273cfda60bf73531baadcf9a57bd1bef443b04 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 8 Jun 2022 14:25:23 -0400 Subject: [PATCH] [28] fix plex_collectionless --- VERSION | 2 +- modules/plex.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 3830a5f9..7c852439 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.0-develop27 +1.17.0-develop28 diff --git a/modules/plex.py b/modules/plex.py index db49c5f8..d13f3bc4 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -794,22 +794,21 @@ class Plex(Library): elif method == "plex_collectionless": good_collections = [] logger.info(f"Processing Plex Collectionless") - logger.info("Collections Excluded") + logger.info("") for col in self.get_all_collections(): keep_collection = True for pre in data["exclude_prefix"]: if col.title.startswith(pre) or (col.titleSort and col.titleSort.startswith(pre)): keep_collection = False - logger.info(f"{col.title} excluded by prefix match {pre}") + logger.info(f"Excluded by Prefix Match: {col.title}") break if keep_collection: for ext in data["exclude"]: if col.title == ext or (col.titleSort and col.titleSort == ext): keep_collection = False - logger.info(f"{col.title} excluded by exact match") + logger.info(f"Excluded by Exact Match: {col.title}") break if keep_collection: - logger.info(f"Collection Passed: {col.title}") good_collections.append(col) logger.info("") logger.info("Collections Not Excluded (Items in these collections are not added to Collectionless)") @@ -819,6 +818,7 @@ class Plex(Library): all_items = self.get_all() for i, item in enumerate(all_items, 1): logger.ghost(f"Processing: {i}/{len(all_items)} {item.title}") + self.reload(item) add_item = True for collection in item.collections: if collection.id in collection_indexes: