[16] run missing when no items are found

pull/1283/head
meisnate12 2 years ago
parent 89d972ff5d
commit 4055c9fe7b

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

@ -679,9 +679,6 @@ def run_collection(config, library, metadata, requested_collections):
else: else:
raise Failed(e) 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() builder.display_filters()
if len(builder.found_items) > 0 and len(builder.found_items) + builder.beginning_count >= builder.minimum and builder.build_collection: 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.stats["sonarr"] += sonarr_add
library.status[str(mapping_name)]["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 valid = True
if builder.build_collection and not builder.blank_collection and items_added + builder.beginning_count < builder.minimum: if builder.build_collection and not builder.blank_collection and items_added + builder.beginning_count < builder.minimum:
logger.info("") logger.info("")

Loading…
Cancel
Save