From ffa0a33724a722317dc0974e1f2a9b6d76bb5b14 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 31 Jan 2022 22:19:49 -0500 Subject: [PATCH] collectionless exclude fix --- VERSION | 2 +- modules/builder.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index e0b5528d..42d3cf46 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.15.1-develop28 +1.15.1-develop29 diff --git a/modules/builder.py b/modules/builder.py index 47dc99cf..68c0c304 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -1026,8 +1026,8 @@ class CollectionBuilder: type_override = f"{self.collection_level}s" if self.collection_level in plex.collection_level_options else None new_dictionary = self.build_filter("plex_search", dict_data, type_override=type_override) elif method_name == "plex_collectionless": - prefix_list = util.parse(self.Type, "exclude_prefix", dict_data, datatype="list", methods=dict_methods) - exact_list = util.parse(self.Type, "exclude", dict_data, datatype="list", methods=dict_methods) + prefix_list = util.parse(self.Type, "exclude_prefix", dict_data, datatype="list", methods=dict_methods) if "exclude_prefix" in dict_methods else [] + exact_list = util.parse(self.Type, "exclude", dict_data, datatype="list", methods=dict_methods) if "exclude" in dict_methods else [] if len(prefix_list) == 0 and len(exact_list) == 0: raise Failed(f"{self.Type} Error: you must have at least one exclusion") exact_list.append(self.name)