|
|
@ -269,9 +269,7 @@ def get_upgradable_episode_subtitles():
|
|
|
|
if not settings.general.upgrade_subs:
|
|
|
|
if not settings.general.upgrade_subs:
|
|
|
|
# return an empty set of rows
|
|
|
|
# return an empty set of rows
|
|
|
|
logging.debug("Subtitles upgrade is disabled so we wont go further.")
|
|
|
|
logging.debug("Subtitles upgrade is disabled so we wont go further.")
|
|
|
|
return select(TableHistory.id) \
|
|
|
|
return {}
|
|
|
|
.where(TableHistory.id.is_(None)) \
|
|
|
|
|
|
|
|
.subquery()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logging.debug("Determining upgradable episode subtitles")
|
|
|
|
logging.debug("Determining upgradable episode subtitles")
|
|
|
|
max_id_timestamp = select(TableHistory.video_path,
|
|
|
|
max_id_timestamp = select(TableHistory.video_path,
|
|
|
@ -349,9 +347,7 @@ def get_upgradable_movies_subtitles():
|
|
|
|
if not settings.general.upgrade_subs:
|
|
|
|
if not settings.general.upgrade_subs:
|
|
|
|
# return an empty set of rows
|
|
|
|
# return an empty set of rows
|
|
|
|
logging.debug("Subtitles upgrade is disabled so we won't go further.")
|
|
|
|
logging.debug("Subtitles upgrade is disabled so we won't go further.")
|
|
|
|
return select(TableHistoryMovie.id) \
|
|
|
|
return {}
|
|
|
|
.where(TableHistoryMovie.id.is_(None)) \
|
|
|
|
|
|
|
|
.subquery()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logging.debug("Determining upgradable movie subtitles")
|
|
|
|
logging.debug("Determining upgradable movie subtitles")
|
|
|
|
max_id_timestamp = select(TableHistoryMovie.video_path,
|
|
|
|
max_id_timestamp = select(TableHistoryMovie.video_path,
|
|
|
|