[34] allow url posters to download on folder creation

pull/1040/head
meisnate12 2 years ago
parent a27c8969f1
commit 4ee3c89249

@ -1 +1 @@
1.17.3-develop33
1.17.3-develop34

@ -1155,13 +1155,12 @@ 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}'")
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}.*")

Loading…
Cancel
Save