fix for bad rating key

pull/399/head
meisnate12 3 years ago
parent b281639ed3
commit 008c0fe5ff

@ -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

@ -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)

@ -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:

Loading…
Cancel
Save