[41] fix ignore_blank_results

This commit is contained in:
meisnate12 2022-07-19 10:54:13 -04:00
parent eee9272d71
commit 11415b98cd
4 changed files with 10 additions and 11 deletions

View file

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

View file

@ -10,9 +10,10 @@ notifiarr:
apikey: ####################################
```
| Attribute | Allowed Values | Required |
|:----------|:------------------|:--------:|
| `apikey` | Notifiarr API Key | ✅ |
| Attribute | Allowed Values | Required |
|:----------|:-----------------------------------------|:--------:|
| `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.

View file

@ -157,7 +157,8 @@ custom_sort_builders = [
episode_parts_only = ["plex_pilots"]
overlay_only = ["overlay", "suppress_overlays"]
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
parts_collection_valid = [
"filters", "plex_all", "plex_search", "trakt_list", "trakt_list_details", "collection_filtering", "collection_mode", "label", "visible_library", "limit",

View file

@ -323,9 +323,6 @@ class Overlays:
else:
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:
logger.info("")
for filter_key, filter_value in builder.filters:
@ -342,11 +339,11 @@ class Overlays:
properties[builder.overlay.mapping_name].keys.append(item.ratingKey)
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.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:
logger.info(e)
except NonExisting as e:
logger.warning(e)
except Failed as e:
logger.stacktrace()
logger.error(e)