From 4055c9fe7bfc9340dfdee74860905a7677ffc7e4 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 23 Jan 2023 17:08:54 -0500 Subject: [PATCH] [16] run missing when no items are found --- VERSION | 2 +- plex_meta_manager.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 853c9f50..f5c3f130 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop15 +1.18.3-develop16 diff --git a/plex_meta_manager.py b/plex_meta_manager.py index b2df61ad..348f455b 100644 --- a/plex_meta_manager.py +++ b/plex_meta_manager.py @@ -679,9 +679,6 @@ def run_collection(config, library, metadata, requested_collections): else: raise Failed(e) - if not builder.found_items and not builder.ignore_blank_results: - raise NonExisting(f"{builder.Type} Warning: No items found") - builder.display_filters() if len(builder.found_items) > 0 and len(builder.found_items) + builder.beginning_count >= builder.minimum and builder.build_collection: @@ -703,6 +700,9 @@ def run_collection(config, library, metadata, requested_collections): library.stats["sonarr"] += sonarr_add library.status[str(mapping_name)]["sonarr"] += sonarr_add + if not builder.found_items and not builder.ignore_blank_results: + raise NonExisting(f"{builder.Type} Warning: No items found") + valid = True if builder.build_collection and not builder.blank_collection and items_added + builder.beginning_count < builder.minimum: logger.info("")