mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[6] clean up asset warnings
This commit is contained in:
parent
66b3bcfee8
commit
2df51e78ad
2 changed files with 9 additions and 6 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.17.1-develop5
|
||||
1.17.1-develop6
|
||||
|
|
|
@ -132,11 +132,14 @@ class Overlays:
|
|||
|
||||
try:
|
||||
poster, background, item_dir, name = self.library.find_item_assets(item)
|
||||
if not poster and self.library.assets_for_all and self.library.show_missing_assets:
|
||||
if self.library.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")
|
||||
if not poster and self.library.assets_for_all:
|
||||
if (isinstance(item, Episode) and self.library.show_missing_episode_assets) or \
|
||||
(isinstance(item, Season) and self.library.show_missing_season_assets) or \
|
||||
(not isinstance(item, (Episode, Season)) and self.library.show_missing_assets):
|
||||
if self.library.asset_folders:
|
||||
logger.warning(f"Asset Warning: No poster found for '{item_title}' in the assets folder '{item_dir}'")
|
||||
else:
|
||||
logger.warning(f"Asset Warning: No poster '{name}' found in the assets folders")
|
||||
if background:
|
||||
self.library.upload_images(item, background=background)
|
||||
except Failed as e:
|
||||
|
|
Loading…
Reference in a new issue