From 0e377fe4742daebe8a8a5e8b88d6a20b62cad296 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 31 May 2022 10:22:58 -0400 Subject: [PATCH] [7] fix assets --- VERSION | 2 +- modules/plex.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index 7aed998e..0118d87a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.0-develop6 +1.17.0-develop7 diff --git a/modules/plex.py b/modules/plex.py index c5721f3d..ff3773ae 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -915,10 +915,6 @@ class Plex(Library): poster = util.pick_image(title, posters, self.prioritize_assets, self.download_url_assets, asset_location, image_name=image_name) background = util.pick_image(title, backgrounds, self.prioritize_assets, self.download_url_assets, asset_location, is_poster=False, image_name=f"{image_name}_background" if image_name else image_name) - if poster and poster.attribute == "asset_directory": - poster = None - if background and background.attribute == "asset_directory": - background = None if poster or background: self.upload_images(item, poster=poster, background=background) return asset_location @@ -985,7 +981,7 @@ class Plex(Library): file_name = item.title elif isinstance(item, Season): prefix = f"{item.parentTitle} Season {item.seasonNumber}'s " - file_name = f"Season{'0' if item.seasonNumber < 10 else ''}{item.seasonNumber}" + file_name = f"Season{'0' if not item.seasonNumber or item.seasonNumber < 10 else ''}{item.seasonNumber}" elif isinstance(item, Episode): prefix = f"{item.grandparentTitle} {item.seasonEpisode.upper()}'s " file_name = item.seasonEpisode.upper()