From c156a79e65704141ed4952a89a45c9575decf4b6 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 27 Jan 2023 21:59:43 -0500 Subject: [PATCH] [39] fix has_imdb_filters error --- VERSION | 2 +- modules/builder.py | 1 + modules/operations.py | 12 ++++++------ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index 6160068d..5643a049 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop38 +1.18.3-develop39 diff --git a/modules/builder.py b/modules/builder.py index a44423bc..4b3428d6 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -416,6 +416,7 @@ class CollectionBuilder: self.builders = [] self.filters = [] self.has_tmdb_filters = False + self.has_imdb_filters = False self.found_items = [] self.filtered_items = [] self.filtered_keys = {} diff --git a/modules/operations.py b/modules/operations.py index 7e5dc7ee..d1f28e6f 100644 --- a/modules/operations.py +++ b/modules/operations.py @@ -508,8 +508,8 @@ class Operations: name = None new_poster = None new_background = None - self.library.poster_update(item, new_poster, tmdb=tmdb_item.poster_url) - self.library.background_update(item, new_background, tmdb=tmdb_item.backdrop_url) + self.library.poster_update(item, new_poster, tmdb=tmdb_item.poster_url if tmdb_item else None) + self.library.background_update(item, new_background, tmdb=tmdb_item.backdrop_url if tmdb_item else None) if self.library.is_show: real_show = tmdb_item.load_show() if tmdb_item else None @@ -521,8 +521,8 @@ class Operations: season_poster = None season_background = None tmdb_poster = tmdb_seasons[season.seasonNumber].poster_url if season.seasonNumber in tmdb_seasons else None - self.library.poster_update(season, season_poster, tmdb=tmdb_poster, title=season.title) - self.library.background_update(season, season_background, title=season.title) + self.library.poster_update(season, season_poster, tmdb=tmdb_poster, title=season.title if season else None) + self.library.background_update(season, season_background, title=season.title if season else None) tmdb_episodes = {} if season.seasonNumber in tmdb_seasons: @@ -539,8 +539,8 @@ class Operations: episode_poster = None episode_background = None tmdb_poster = tmdb_episodes[episode.episodeNumber].still_url if episode.episodeNumber in tmdb_episodes else None - self.library.poster_update(episode, episode_poster, tmdb=tmdb_poster, title=episode.title) - self.library.background_update(episode, episode_background, title=episode.title) + self.library.poster_update(episode, episode_poster, tmdb=tmdb_poster, title=episode.title if episode else None) + self.library.background_update(episode, episode_background, title=episode.title if episode else None) episode_ops = [self.library.mass_episode_audience_rating_update, self.library.mass_episode_critic_rating_update, self.library.mass_episode_user_rating_update]