[46] remove warning

This commit is contained in:
meisnate12 2022-06-21 02:52:08 -04:00
parent 25b32453ea
commit c2bb90c6dd
3 changed files with 6 additions and 5 deletions

View file

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

View file

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

View file

@ -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}.*")