From 0bdc467ff366005dd2ec03fdc551173138939464 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 17 Feb 2023 12:11:18 -0500 Subject: [PATCH] [71] fix playlists use_* --- VERSION | 2 +- modules/builder.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index ad2e6dca..f88bd0f3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop70 +1.18.3-develop71 diff --git a/modules/builder.py b/modules/builder.py index 74d5802e..bc03607d 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -265,7 +265,7 @@ class CollectionBuilder: self.obj = None self.only_run_on_create = False - if "only_run_on_create" in methods and not self.playlist: + if "only_run_on_create" in methods: logger.debug("") logger.debug("Validating Method: only_run_on_create") logger.debug(f"Value: {data[methods['only_run_on_create']]}") @@ -281,7 +281,7 @@ class CollectionBuilder: logger.debug(f"Value: {self.data[methods['allowed_library_types']]}") found_type = False for library_type in util.get_list(self.data[methods["allowed_library_types"]], lower=True): - if library_type == "true" or library_type == self.library.Plex.type: + if library_type == "true" or (self.library and library_type == self.library.Plex.type): found_type = True elif library_type == "false": raise NotScheduled(f"Skipped because allowed_library_types is false")