[43] fixes for bull

pull/935/head
meisnate12 2 years ago
parent c2488400a0
commit c95ec69d86

@ -1 +1 @@
1.17.0-develop42 1.17.0-develop43

@ -157,6 +157,7 @@ class Library(ABC):
if self.config.Cache: if self.config.Cache:
_, image_compare, _ = self.config.Cache.query_image_map(item.ratingKey, self.image_table_name) _, 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): if not image_compare or str(poster.compare) != str(image_compare):
if hasattr(item, "labels"):
test = [la.tag for la in self.item_labels(item)] test = [la.tag for la in self.item_labels(item)]
if overlay and "Overlay" in test: if overlay and "Overlay" in test:
item.removeLabel("Overlay") item.removeLabel("Overlay")

@ -341,7 +341,7 @@ class Operations:
pass pass
item.saveEdits() item.saveEdits()
if batch_display: if len(batch_display) > 0:
logger.info(f"Batch Edits{batch_display}") 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] episode_ops = [self.library.mass_episode_audience_rating_update, self.library.mass_episode_critic_rating_update, self.library.mass_episode_user_rating_update]

@ -1070,7 +1070,8 @@ class Plex(Library):
extra = f"\nAsset Directory Created: {item_asset_directory}" extra = f"\nAsset Directory Created: {item_asset_directory}"
raise Failed(f"Asset Warning: Unable to find asset folder: '{folder_name}{extra}'") raise Failed(f"Asset Warning: Unable to find asset folder: '{folder_name}{extra}'")
else: 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 return None, None, item_asset_directory, folder_name
poster_filter = os.path.join(item_asset_directory, f"{file_name}.*") poster_filter = os.path.join(item_asset_directory, f"{file_name}.*")

Loading…
Cancel
Save