From 4ee3c89249482d534adb3a64591b3fcb42fe686a Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 20 Sep 2022 10:45:09 -0400 Subject: [PATCH] [34] allow url posters to download on folder creation --- VERSION | 2 +- modules/plex.py | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index 7687a240..7eeaaf78 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.3-develop33 +1.17.3-develop34 diff --git a/modules/plex.py b/modules/plex.py index 13c35348..d5905b9f 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -1155,14 +1155,13 @@ class Plex(Library): break if not item_asset_directory: if self.asset_folders: - extra = "" if self.create_asset_folders and asset_directory: item_asset_directory = os.path.join(asset_directory[0], folder_name) os.makedirs(item_asset_directory, exist_ok=True) - extra = f"\nAsset Directory Created: {item_asset_directory}" - raise Failed(f"Asset Warning: Unable to find asset folder: '{folder_name}{extra}'") - else: - return None, None, item_asset_directory, folder_name + logger.warning(f"Asset Warning: Asset Directory Not Found and Created: {item_asset_directory}") + else: + raise Failed(f"Asset Warning: Unable to find asset folder: '{folder_name}'") + return None, None, item_asset_directory, folder_name poster_filter = os.path.join(item_asset_directory, f"{file_name}.*") background_filter = os.path.join(item_asset_directory, "background.*" if file_name == "poster" else f"{file_name}_background.*")