fix for bad rating key

This commit is contained in:
meisnate12 2021-09-20 22:24:07 -04:00
parent b281639ed3
commit 008c0fe5ff
3 changed files with 3 additions and 4 deletions

View file

@ -45,7 +45,6 @@ tautulli: # Can be individually specified
radarr: # Can be individually specified per library as well
url: http://192.168.1.12:7878
token: ################################
version: v3
add: false
root_folder_path: S:/Movies
monitor: true
@ -56,7 +55,6 @@ radarr: # Can be individually specified
sonarr: # Can be individually specified per library as well
url: http://192.168.1.12:8989
token: ################################
version: v3
add: false
root_folder_path: "S:/TV Shows"
monitor: all

View file

@ -1760,6 +1760,7 @@ class CollectionBuilder:
except Failed as e:
logger.error(e)
continue
if isinstance(item, (Movie, Show)):
self.library.edit_tags("label", item, add_tags=[f"{overlay_name} Overlay"])
self.config.Cache.update_remove_overlay(self.library.image_table_name, overlay_name)
rating_keys = [int(item.ratingKey) for item in self.library.get_labeled_items(f"{overlay_name} Overlay")]