[16] run missing when no items are found

This commit is contained in:
meisnate12 2023-01-23 17:08:54 -05:00
parent 89d972ff5d
commit 4055c9fe7b
2 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
1.18.3-develop15
1.18.3-develop16

View file

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