From eef2aff8e668b59584256c5f04e0bfd20db10a07 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 16 Mar 2021 11:49:05 -0400 Subject: [PATCH] fix for #47 --- modules/builder.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/builder.py b/modules/builder.py index cc4e6206..96f265e7 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -406,9 +406,6 @@ class CollectionBuilder: if isinstance(data[m]["exclude"], list): exact_list.extend(data[m]["exclude"]) else: exact_list.append(str(data[m]["exclude"])) if len(prefix_list) == 0 and len(exact_list) == 0: raise Failed("Collection Error: you must have at least one exclusion") - self.details["add_to_arr"] = False - self.details["collection_mode"] = "hide" - self.sync = True new_dictionary["exclude_prefix"] = prefix_list new_dictionary["exclude"] = exact_list self.methods.append((method_name, [new_dictionary])) @@ -641,6 +638,11 @@ class CollectionBuilder: if self.library.Sonarr: self.do_arr = self.details["add_to_arr"] if "add_to_arr" in self.details else self.library.Sonarr.add + if self.collectionless: + self.details["add_to_arr"] = False + self.details["collection_mode"] = "hide" + self.sync = True + def run_methods(self, collection_obj, collection_name, rating_key_map, movie_map, show_map): items_found = 0 for method, values in self.methods: