From dfd8bedd6a1e4ebf43c35defff156fd9a135d9fb Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Mon, 3 Jul 2023 18:28:29 -0400 Subject: Fixed upgradable subtitles logic being called even if user do not want to upgrade existing subtitles. --- bazarr/subtitles/upgrade.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bazarr/subtitles/upgrade.py b/bazarr/subtitles/upgrade.py index 0413bacda..1dd4e7526 100644 --- a/bazarr/subtitles/upgrade.py +++ b/bazarr/subtitles/upgrade.py @@ -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), -- cgit v1.2.3