|
|
|
@ -316,6 +316,13 @@ class Overlays:
|
|
|
|
|
raise Failed(f"Overlay Error: Overlay {builder.overlay.mapping_name} already exists")
|
|
|
|
|
properties[builder.overlay.mapping_name] = builder.overlay
|
|
|
|
|
|
|
|
|
|
if builder.filters or builder.tmdb_filters:
|
|
|
|
|
logger.info("")
|
|
|
|
|
for filter_key, filter_value in builder.filters:
|
|
|
|
|
logger.info(f"Collection Filter {filter_key}: {filter_value}")
|
|
|
|
|
for filter_key, filter_value in builder.tmdb_filters:
|
|
|
|
|
logger.info(f"Collection Filter {filter_key}: {filter_value}")
|
|
|
|
|
|
|
|
|
|
for method, value in builder.builders:
|
|
|
|
|
logger.debug("")
|
|
|
|
|
logger.debug(f"Builder: {method}: {value}")
|
|
|
|
@ -324,17 +331,11 @@ class Overlays:
|
|
|
|
|
builder.filter_and_save_items(builder.gather_ids(method, value))
|
|
|
|
|
except NonExisting as e:
|
|
|
|
|
if builder.ignore_blank_results:
|
|
|
|
|
logger.warning("")
|
|
|
|
|
logger.warning(e)
|
|
|
|
|
else:
|
|
|
|
|
raise Failed(e)
|
|
|
|
|
|
|
|
|
|
if builder.filters or builder.tmdb_filters:
|
|
|
|
|
logger.info("")
|
|
|
|
|
for filter_key, filter_value in builder.filters:
|
|
|
|
|
logger.info(f"Collection Filter {filter_key}: {filter_value}")
|
|
|
|
|
for filter_key, filter_value in builder.tmdb_filters:
|
|
|
|
|
logger.info(f"Collection Filter {filter_key}: {filter_value}")
|
|
|
|
|
|
|
|
|
|
added_titles = []
|
|
|
|
|
if builder.added_items:
|
|
|
|
|
for item in builder.added_items:
|
|
|
|
@ -347,6 +348,7 @@ class Overlays:
|
|
|
|
|
logger.info(f"{len(added_titles)} Items found for {builder.overlay.mapping_name} Overlay")
|
|
|
|
|
else:
|
|
|
|
|
logger.warning(f"No Items found for {builder.overlay.mapping_name} Overlay")
|
|
|
|
|
logger.info("")
|
|
|
|
|
except NotScheduled as e:
|
|
|
|
|
logger.info(e)
|
|
|
|
|
except Failed as e:
|
|
|
|
|