From 6fbc91289fe4031a73fb34d34706063a9d45d93b Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 21 Nov 2024 22:51:02 -0500 Subject: [PATCH] Fixed issue introduced in 1.4.6-beta.20 when subtitles upgrade is disabled. #2768 --- bazarr/subtitles/upgrade.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bazarr/subtitles/upgrade.py b/bazarr/subtitles/upgrade.py index 54e6f1346..97196239a 100644 --- a/bazarr/subtitles/upgrade.py +++ b/bazarr/subtitles/upgrade.py @@ -269,9 +269,7 @@ def get_upgradable_episode_subtitles(): if not settings.general.upgrade_subs: # return an empty set of rows logging.debug("Subtitles upgrade is disabled so we wont go further.") - return select(TableHistory.id) \ - .where(TableHistory.id.is_(None)) \ - .subquery() + return {} logging.debug("Determining upgradable episode subtitles") max_id_timestamp = select(TableHistory.video_path, @@ -349,9 +347,7 @@ def get_upgradable_movies_subtitles(): if not settings.general.upgrade_subs: # return an empty set of rows logging.debug("Subtitles upgrade is disabled so we won't go further.") - return select(TableHistoryMovie.id) \ - .where(TableHistoryMovie.id.is_(None)) \ - .subquery() + return {} logging.debug("Determining upgradable movie subtitles") max_id_timestamp = select(TableHistoryMovie.video_path,