[71] fix playlists use_*

This commit is contained in:
meisnate12 2023-02-17 12:11:18 -05:00
parent 430d26996e
commit 0bdc467ff3
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
1.18.3-develop70
1.18.3-develop71

View file

@ -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")