diff options
author | morpheus65535 <[email protected]> | 2023-07-03 18:28:29 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2023-07-03 18:28:29 -0400 |
commit | dfd8bedd6a1e4ebf43c35defff156fd9a135d9fb (patch) | |
tree | 92ef533f94605b019a51e0d6cfa960da35061db2 | |
parent | b17a2a5f4a5712d00dfb2c8be3c2062072c2aa61 (diff) | |
download | bazarr-dfd8bedd6a1e4ebf43c35defff156fd9a135d9fb.tar.gz bazarr-dfd8bedd6a1e4ebf43c35defff156fd9a135d9fb.zip |
Fixed upgradable subtitles logic being called even if user do not want to upgrade existing subtitles.
-rw-r--r-- | bazarr/subtitles/upgrade.py | 6 |
1 files changed, 6 insertions, 0 deletions
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), |