Skip to content

Commit

Permalink
Fixed issue introduced in 1.4.6-beta.20 when subtitles upgrade is dis…
Browse files Browse the repository at this point in the history
…abled. #2768
  • Loading branch information
morpheus65535 committed Nov 22, 2024
1 parent 24096cb commit 6fbc912
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bazarr/subtitles/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6fbc912

Please sign in to comment.