diff options
author | morpheus65535 <[email protected]> | 2024-11-21 22:51:02 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-11-21 22:51:02 -0500 |
commit | 6fbc91289fe4031a73fb34d34706063a9d45d93b (patch) | |
tree | 8e253529e9d1b525891347e012adce4e55101a42 | |
parent | 24096cb10f6aaf3b377bfb24ef255efcdccf89c4 (diff) | |
download | bazarr-6fbc91289fe4031a73fb34d34706063a9d45d93b.tar.gz bazarr-6fbc91289fe4031a73fb34d34706063a9d45d93b.zip |
Fixed issue introduced in 1.4.6-beta.20 when subtitles upgrade is disabled. #2768v1.4.6-beta.21
-rw-r--r-- | bazarr/subtitles/upgrade.py | 8 |
1 files 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, |