diff options
author | morpheus65535 <[email protected]> | 2024-11-24 22:38:39 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-11-24 22:39:44 -0500 |
commit | c42ab442344cf6cccc9b1162b6e6c143d13510a2 (patch) | |
tree | 24c3104438593770a389a6c05a0a07d6f39cbace | |
parent | 5b3312ea4d88b3c37087da3938e43a021033d07e (diff) | |
download | bazarr-c42ab442344cf6cccc9b1162b6e6c143d13510a2.tar.gz bazarr-c42ab442344cf6cccc9b1162b6e6c143d13510a2.zip |
no log: fix for last commit
-rw-r--r-- | bazarr/api/episodes/wanted.py | 2 | ||||
-rw-r--r-- | bazarr/api/movies/wanted.py | 3 | ||||
-rw-r--r-- | bazarr/api/series/series.py | 3 | ||||
-rw-r--r-- | bazarr/subtitles/wanted/movies.py | 3 | ||||
-rw-r--r-- | bazarr/subtitles/wanted/series.py | 3 |
5 files changed, 9 insertions, 5 deletions
diff --git a/bazarr/api/episodes/wanted.py b/bazarr/api/episodes/wanted.py index 8f5a10fef..4a6ec3641 100644 --- a/bazarr/api/episodes/wanted.py +++ b/bazarr/api/episodes/wanted.py @@ -49,7 +49,7 @@ class EpisodesWanted(Resource): episodeid = args.get('episodeid[]') wanted_conditions = [(TableEpisodes.missing_subtitles.is_not(None)), - (TableEpisodes.missing_subtitles.is_not('[]'))] + (TableEpisodes.missing_subtitles.is_not('[]'))] if len(episodeid) > 0: wanted_conditions.append((TableEpisodes.sonarrEpisodeId in episodeid)) start = 0 diff --git a/bazarr/api/movies/wanted.py b/bazarr/api/movies/wanted.py index 58749f707..ba22cd725 100644 --- a/bazarr/api/movies/wanted.py +++ b/bazarr/api/movies/wanted.py @@ -45,7 +45,8 @@ class MoviesWanted(Resource): args = self.get_request_parser.parse_args() radarrid = args.get("radarrid[]") - wanted_conditions = [(TableMovies.missing_subtitles.is_not('[]'))] + wanted_conditions = [(TableMovies.missing_subtitles.is_not(None)), + (TableMovies.missing_subtitles.is_not('[]'))] if len(radarrid) > 0: wanted_conditions.append((TableMovies.radarrId.in_(radarrid))) start = 0 diff --git a/bazarr/api/series/series.py b/bazarr/api/series/series.py index 6b1dc8747..a9b73c451 100644 --- a/bazarr/api/series/series.py +++ b/bazarr/api/series/series.py @@ -73,7 +73,8 @@ class Series(Resource): .group_by(TableShows.sonarrSeriesId)\ .subquery() - episodes_missing_conditions = [(TableEpisodes.missing_subtitles.is_not('[]'))] + episodes_missing_conditions = [(TableEpisodes.missing_subtitles.is_not(None)), + (TableEpisodes.missing_subtitles.is_not('[]'))] episodes_missing_conditions += get_exclusion_clause('series') episodeMissingCount = select(TableShows.sonarrSeriesId, diff --git a/bazarr/subtitles/wanted/movies.py b/bazarr/subtitles/wanted/movies.py index acacf9d26..f8c76be54 100644 --- a/bazarr/subtitles/wanted/movies.py +++ b/bazarr/subtitles/wanted/movies.py @@ -96,7 +96,8 @@ def wanted_download_subtitles_movie(radarr_id): def wanted_search_missing_subtitles_movies(): - conditions = [(TableMovies.missing_subtitles.is_not('[]'))] + conditions = [(TableMovies.missing_subtitles.is_not(None)), + (TableMovies.missing_subtitles.is_not('[]'))] conditions += get_exclusion_clause('movie') movies = database.execute( select(TableMovies.radarrId, diff --git a/bazarr/subtitles/wanted/series.py b/bazarr/subtitles/wanted/series.py index e4a084aa2..b7116e6b3 100644 --- a/bazarr/subtitles/wanted/series.py +++ b/bazarr/subtitles/wanted/series.py @@ -101,7 +101,8 @@ def wanted_download_subtitles(sonarr_episode_id): def wanted_search_missing_subtitles_series(): - conditions = [(TableEpisodes.missing_subtitles.is_not('[]'))] + conditions = [(TableEpisodes.missing_subtitles.is_not(None)), + (TableEpisodes.missing_subtitles.is_not('[]'))] conditions += get_exclusion_clause('series') episodes = database.execute( select(TableEpisodes.sonarrSeriesId, |