Fixed upgradable subtitles logic being called even if user do not want to upgrade existing subtitles.

pull/2193/head
morpheus65535 1 year ago
parent b17a2a5f4a
commit dfd8bedd6a

@ -184,6 +184,9 @@ def parse_language_string(language_string):
def get_upgradable_episode_subtitles():
if not settings.general.getboolean('upgrade_subs'):
return []
minimum_timestamp, query_actions = get_queries_condition_parameters()
upgradable_episodes_conditions = [(TableHistory.action << query_actions),
@ -225,6 +228,9 @@ def get_upgradable_episode_subtitles():
def get_upgradable_movies_subtitles():
if not settings.general.getboolean('upgrade_subs'):
return []
minimum_timestamp, query_actions = get_queries_condition_parameters()
upgradable_movies_conditions = [(TableHistoryMovie.action << query_actions),

Loading…
Cancel
Save