diff --git a/bazarr/api.py b/bazarr/api.py index 40a510602..30d7ceee2 100644 --- a/bazarr/api.py +++ b/bazarr/api.py @@ -1633,7 +1633,7 @@ class WantedSeries(Resource): "table_episodes.failedAttempts, table_shows.seriesType FROM table_episodes INNER JOIN " "table_shows on table_shows.sonarrSeriesId = table_episodes.sonarrSeriesId WHERE " "table_episodes.missing_subtitles != '[]'" + get_exclusion_clause('series') + - " ORDER BY table_episodes._rowid_ DESC LIMIT " + length + " OFFSET " + start) + " ORDER BY table_episodes._rowid_ DESC LIMIT ? OFFSET ?", (length, start)) for item in data: # Parse missing subtitles @@ -1676,8 +1676,7 @@ class WantedMovies(Resource): row_count = len(data_count) data = database.execute("SELECT title, missing_subtitles, radarrId, path, sceneName, " "failedAttempts, tags, monitored FROM table_movies WHERE missing_subtitles != '[]'" + - get_exclusion_clause('movie') + " ORDER BY _rowid_ DESC LIMIT " + length + " OFFSET " + - start) + get_exclusion_clause('movie') + " ORDER BY _rowid_ DESC LIMIT ? OFFSET ?", (length, start)) for item in data: # Parse missing subtitles