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,7 +1760,8 @@ class CollectionBuilder:
except Failed as e:
logger.error(e)
continue
self.library.edit_tags("label", item, add_tags=[f"{overlay_name} Overlay"])
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")]
overlay_folder = os.path.join(self.config.default_dir, "overlays", overlay_name)

View file

@ -530,7 +530,7 @@ def run_collection(config, library, metadata, requested_collections):
builder.update_details()
if builder.custom_sort:
library.run_sort.append(builder)
#builder.sort_collection()
# builder.sort_collection()
if builder.item_details and run_item_details:
try: