[41] fix ignore_blank_results

pull/970/head
meisnate12 2 years ago
parent eee9272d71
commit 11415b98cd

@ -1 +1 @@
1.17.1-develop40 1.17.1-develop41

@ -11,8 +11,9 @@ notifiarr:
``` ```
| Attribute | Allowed Values | Required | | Attribute | Allowed Values | Required |
|:----------|:------------------|:--------:| |:----------|:-----------------------------------------|:--------:|
| `apikey` | Notifiarr API Key | ✅ | | `apikey` | Notifiarr API Key | ✅ |
| `develop` | Use the Development Version of Notifiarr | ❌ |
Once you have added the apikey your config.yml you have to add `notifiarr` to any webhook to send that notification to Notifiarr. Once you have added the apikey your config.yml you have to add `notifiarr` to any webhook to send that notification to Notifiarr.

@ -157,7 +157,8 @@ custom_sort_builders = [
episode_parts_only = ["plex_pilots"] episode_parts_only = ["plex_pilots"]
overlay_only = ["overlay", "suppress_overlays"] overlay_only = ["overlay", "suppress_overlays"]
overlay_attributes = [ overlay_attributes = [
"filters", "limit", "show_missing", "save_report", "missing_only_released", "minimum_items", "cache_builders", "tmdb_region", "default_percent" "filters", "limit", "show_missing", "save_report", "missing_only_released", "minimum_items", "cache_builders",
"tmdb_region", "default_percent", "ignore_blank_results"
] + all_builders + overlay_only ] + all_builders + overlay_only
parts_collection_valid = [ parts_collection_valid = [
"filters", "plex_all", "plex_search", "trakt_list", "trakt_list_details", "collection_filtering", "collection_mode", "label", "visible_library", "limit", "filters", "plex_all", "plex_search", "trakt_list", "trakt_list_details", "collection_filtering", "collection_mode", "label", "visible_library", "limit",

@ -323,9 +323,6 @@ class Overlays:
else: else:
raise Failed(e) raise Failed(e)
if not builder.added_items and builder.ignore_blank_results:
raise NonExisting(f"Overlay Warning: No items found")
if builder.filters or builder.tmdb_filters: if builder.filters or builder.tmdb_filters:
logger.info("") logger.info("")
for filter_key, filter_value in builder.filters: for filter_key, filter_value in builder.filters:
@ -342,11 +339,11 @@ class Overlays:
properties[builder.overlay.mapping_name].keys.append(item.ratingKey) properties[builder.overlay.mapping_name].keys.append(item.ratingKey)
if added_titles: if added_titles:
logger.debug(f"{len(added_titles)} Titles Found: {[self.library.get_item_sort_title(a, atr='title') for a in added_titles]}") logger.debug(f"{len(added_titles)} Titles Found: {[self.library.get_item_sort_title(a, atr='title') for a in added_titles]}")
logger.info(f"{len(added_titles) if added_titles else 'No'} Items found for {builder.overlay.mapping_name}") 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")
except NotScheduled as e: except NotScheduled as e:
logger.info(e) logger.info(e)
except NonExisting as e:
logger.warning(e)
except Failed as e: except Failed as e:
logger.stacktrace() logger.stacktrace()
logger.error(e) logger.error(e)

Loading…
Cancel
Save