From f70d868261c50e2f729a6b54e856e07c0b92c773 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 30 Jun 2021 18:26:53 -0400 Subject: [PATCH] #307 Added item_assets collection detail --- modules/builder.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/builder.py b/modules/builder.py index 30618498..45f49677 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -140,7 +140,8 @@ boolean_details = [ "visible_shared", "show_filtered", "show_missing", - "save_missing" + "save_missing", + "item_assets" ] string_details = [ "sort_title", @@ -215,7 +216,8 @@ class CollectionBuilder: self.details = { "show_filtered": self.library.show_filtered, "show_missing": self.library.show_missing, - "save_missing": self.library.save_missing + "save_missing": self.library.save_missing, + "item_assets": False } self.item_details = {} self.radarr_options = {} @@ -1682,8 +1684,9 @@ class CollectionBuilder: for item in items: if int(item.ratingKey) in rating_keys: rating_keys.remove(int(item.ratingKey)) - poster, background = self.library.update_item_from_assets(item) - self.library.upload_images(item, poster=poster, background=background, overlay=overlay) + if self.details["item_assets"]: + poster, background = self.library.update_item_from_assets(item) + self.library.upload_images(item, poster=poster, background=background, overlay=overlay) self.library.edit_tags("label", item, add_tags=add_tags, remove_tags=remove_tags, sync_tags=sync_tags) advance_edits = {} for method_name, method_data in self.item_details.items():