Fixed issue introduced in 1.4.6-beta.20 when subtitles upgrade is disabled. #2768

development v1.4.6-beta.21
morpheus65535 2 days ago
parent 24096cb10f
commit 6fbc91289f

@ -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,

Loading…
Cancel
Save