|
|
@ -906,6 +906,7 @@ class Plex(Library):
|
|
|
|
missing_assets = ""
|
|
|
|
missing_assets = ""
|
|
|
|
found_image = False
|
|
|
|
found_image = False
|
|
|
|
for season in self.query(item.seasons):
|
|
|
|
for season in self.query(item.seasons):
|
|
|
|
|
|
|
|
if season.seasonNumber:
|
|
|
|
season_name = f"Season{'0' if season.seasonNumber < 10 else ''}{season.seasonNumber}"
|
|
|
|
season_name = f"Season{'0' if season.seasonNumber < 10 else ''}{season.seasonNumber}"
|
|
|
|
if item_dir:
|
|
|
|
if item_dir:
|
|
|
|
season_poster_filter = os.path.join(item_dir, f"{season_name}.*")
|
|
|
|
season_poster_filter = os.path.join(item_dir, f"{season_name}.*")
|
|
|
@ -927,6 +928,7 @@ class Plex(Library):
|
|
|
|
if season_poster or season_background:
|
|
|
|
if season_poster or season_background:
|
|
|
|
self.upload_images(season, poster=season_poster, background=season_background)
|
|
|
|
self.upload_images(season, poster=season_poster, background=season_background)
|
|
|
|
for episode in self.query(season.episodes):
|
|
|
|
for episode in self.query(season.episodes):
|
|
|
|
|
|
|
|
if episode.seasonEpisode:
|
|
|
|
if item_dir:
|
|
|
|
if item_dir:
|
|
|
|
episode_filter = os.path.join(item_dir, f"{episode.seasonEpisode.upper()}.*")
|
|
|
|
episode_filter = os.path.join(item_dir, f"{episode.seasonEpisode.upper()}.*")
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|