From 86da34c29213a9d4d4ea2e261db5db300ce6fc0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sun, 17 Mar 2019 14:53:36 -0400 Subject: [PATCH] Continuing development. --- bazarr/config.py | 1 + bazarr/scheduler.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bazarr/config.py b/bazarr/config.py index d73059752..87bd91119 100644 --- a/bazarr/config.py +++ b/bazarr/config.py @@ -38,6 +38,7 @@ defaults = { 'chmod': '0640', 'subfolder': 'current', 'subfolder_custom': '', + 'upgrade_subs': 'True', 'days_to_upgrade_subs': '7' }, 'auth': { diff --git a/bazarr/scheduler.py b/bazarr/scheduler.py index a30ac2edf..90d360252 100644 --- a/bazarr/scheduler.py +++ b/bazarr/scheduler.py @@ -109,8 +109,9 @@ if settings.general.getboolean('use_sonarr') or settings.general.getboolean('use scheduler.add_job(wanted_search_missing_subtitles, IntervalTrigger(hours=3), max_instances=1, coalesce=True, misfire_grace_time=15, id='wanted_search_missing_subtitles', name='Search for wanted subtitles') -scheduler.add_job(upgrade_subtitles, IntervalTrigger(hours=12), max_instances=1, coalesce=True, - misfire_grace_time=15, id='upgrade_subtitles', name='Upgrade subtitles') +if settings.general.getboolean('upgrade_subs'): + scheduler.add_job(upgrade_subtitles, IntervalTrigger(hours=12), max_instances=1, coalesce=True, + misfire_grace_time=15, id='upgrade_subtitles', name='Upgrade subtitles') sonarr_full_update() radarr_full_update()