[46] remove warning

pull/935/head
meisnate12 3 years ago
parent 25b32453ea
commit c2bb90c6dd

@ -1 +1 @@
1.17.0-develop45
1.17.0-develop46

@ -130,9 +130,12 @@ class Overlays:
overlay_change = True
try:
poster, _, item_dir, _ = self.library.find_item_assets(item)
poster, _, item_dir, name = self.library.find_item_assets(item)
if not poster and self.library.assets_for_all and self.library.show_missing_assets:
logger.warning(f"Asset Warning: No poster found in the assets folder '{item_dir}'")
if self.config.asset_folders:
logger.warning(f"Asset Warning: No poster found in the assets folder '{item_dir}'")
else:
logger.warning(f"Asset Warning: No poster '{name}' found in the assets folders")
except Failed as e:
if self.library.assets_for_all and self.library.show_missing_assets:
logger.warning(e)

@ -1070,8 +1070,6 @@ 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:
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}.*")

Loading…
Cancel
Save