From c95ec69d863069b99ea28d7d6e6d903d90e79924 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 17 Jun 2022 11:00:07 -0400 Subject: [PATCH] [43] fixes for bull --- VERSION | 2 +- modules/library.py | 9 +++++---- modules/operations.py | 2 +- modules/plex.py | 3 ++- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index c4d70fd4..14ec7a36 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.0-develop42 +1.17.0-develop43 diff --git a/modules/library.py b/modules/library.py index 4722202b..0b8d72a8 100644 --- a/modules/library.py +++ b/modules/library.py @@ -157,10 +157,11 @@ class Library(ABC): if self.config.Cache: _, image_compare, _ = self.config.Cache.query_image_map(item.ratingKey, self.image_table_name) if not image_compare or str(poster.compare) != str(image_compare): - test = [la.tag for la in self.item_labels(item)] - if overlay and "Overlay" in test: - item.removeLabel("Overlay") - item.saveEdits() + if hasattr(item, "labels"): + test = [la.tag for la in self.item_labels(item)] + if overlay and "Overlay" in test: + item.removeLabel("Overlay") + item.saveEdits() self._upload_image(item, poster) poster_uploaded = True logger.info(f"Detail: {poster.attribute} updated {poster.message}") diff --git a/modules/operations.py b/modules/operations.py index bdb19d06..c6daff7e 100644 --- a/modules/operations.py +++ b/modules/operations.py @@ -341,7 +341,7 @@ class Operations: pass item.saveEdits() - if batch_display: + if len(batch_display) > 0: logger.info(f"Batch Edits{batch_display}") episode_ops = [self.library.mass_episode_audience_rating_update, self.library.mass_episode_critic_rating_update, self.library.mass_episode_user_rating_update] diff --git a/modules/plex.py b/modules/plex.py index dfcc9d35..4e2dc8de 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -1070,7 +1070,8 @@ class Plex(Library): extra = f"\nAsset Directory Created: {item_asset_directory}" raise Failed(f"Asset Warning: Unable to find asset folder: '{folder_name}{extra}'") else: - logger.error(f"Asset Warning: Unable to find asset file: '{file_name}'") + if self.assets_for_all and self.show_missing_assets: + logger.warning(f"Asset Warning: Unable to find asset file: '{file_name}'") return None, None, item_asset_directory, folder_name poster_filter = os.path.join(item_asset_directory, f"{file_name}.*")