From b2343392b13b7421ac36ff1fe9fc4bbac6dd2046 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 2 Feb 2024 15:41:44 -0500 Subject: [PATCH] [28] fix for #1842 --- VERSION | 2 +- modules/builder.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 4c4e845d..d6c57c4e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.20.0-develop27 +1.20.0-develop28 diff --git a/modules/builder.py b/modules/builder.py index 715addcd..b1a80072 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -59,6 +59,7 @@ item_false_details = ["item_lock_background", "item_lock_poster", "item_lock_tit item_bool_details = ["item_tmdb_season_titles", "revert_overlay", "item_assets", "item_refresh"] + item_false_details item_details = ["non_item_remove_label", "item_label", "item_genre", "item_edition", "item_radarr_tag", "item_sonarr_tag", "item_refresh_delay"] + item_bool_details + list(plex.item_advance_keys.keys()) none_details = ["label.sync", "item_label.sync", "item_genre.sync", "radarr_taglist", "sonarr_taglist", "item_edition"] +none_builders = ["radarr_tag_list", "sonarr_taglist"] radarr_details = [ "radarr_add_missing", "radarr_add_existing", "radarr_upgrade_existing", "radarr_monitor_existing", "radarr_folder", "radarr_monitor", "radarr_search", "radarr_availability", "radarr_quality", "radarr_tag", "item_radarr_tag", "radarr_ignore_cache", @@ -966,7 +967,7 @@ class CollectionBuilder: logger.debug(f"Validating Method: {method_key}") logger.debug(f"Value: {method_data}") try: - if method_data is None and method_name in all_builders + plex.searches: + if method_data is None and method_name in all_builders + plex.searches and method_final not in none_builders: raise Failed(f"{self.Type} Error: {method_final} attribute is blank") elif method_data is None and method_final not in none_details: logger.warning(f"Collection Warning: {method_final} attribute is blank")