From 6f1f028735f8e1576d2b22188ed0b0eb97eceb5f Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 11 Oct 2023 16:03:37 -0400 Subject: [PATCH] [12] fix mass poster update updating episodes when it shouldn't --- VERSION | 2 +- modules/operations.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 0a2901b3..d4e446dc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.19.1-develop11 +1.19.1-develop12 diff --git a/modules/operations.py b/modules/operations.py index d0b12a05..241fc27e 100644 --- a/modules/operations.py +++ b/modules/operations.py @@ -538,9 +538,9 @@ class Operations: season_background = None season_title = f"S{season.seasonNumber} {season.title}" tmdb_poster = tmdb_seasons[season.seasonNumber].poster_url if season.seasonNumber in tmdb_seasons else None - if self.library.mass_poster_update: + if self.library.mass_poster_update and self.library.mass_poster_update["seasons"]: self.library.poster_update(season, season_poster, tmdb=tmdb_poster, title=season_title if season else None) - if self.library.mass_background_update: + if self.library.mass_background_update and self.library.mass_background_update["seasons"]: self.library.background_update(season, season_background, title=season_title if season else None) if (self.library.mass_poster_update and self.library.mass_poster_update["episodes"]) or \ @@ -562,9 +562,9 @@ class Operations: episode_background = None episode_title = f"S{season.seasonNumber}E{episode.episodeNumber} {episode.title}" tmdb_poster = tmdb_episodes[episode.episodeNumber].still_url if episode.episodeNumber in tmdb_episodes else None - if self.library.mass_poster_update: + if self.library.mass_poster_update and self.library.mass_poster_update["episodes"]: self.library.poster_update(episode, episode_poster, tmdb=tmdb_poster, title=episode_title if episode else None) - if self.library.mass_background_update: + if self.library.mass_background_update and self.library.mass_background_update["episodes"]: self.library.background_update(episode, episode_background, title=episode_title if episode else None) episode_ops = [