diff options
author | JayZed <[email protected]> | 2024-02-20 20:23:47 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-20 20:23:47 -0500 |
commit | 6c488063e73b401c60c71a5a4b57a045de2bdc36 (patch) | |
tree | dbb91e12a5879c1dc37058fd247d04379c7f7259 | |
parent | e3354aa7f3419448328558e1844a461318734ff2 (diff) | |
download | bazarr-1.4.3-beta.1.tar.gz bazarr-1.4.3-beta.1.zip |
Modified upgrade task so it always shows in UI even if it's set to manually in schedulerv1.4.3-beta.1
-rw-r--r-- | bazarr/app/scheduler.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/bazarr/app/scheduler.py b/bazarr/app/scheduler.py index cbd68886e..9910f2390 100644 --- a/bazarr/app/scheduler.py +++ b/bazarr/app/scheduler.py @@ -301,17 +301,11 @@ class Scheduler: name='Search for Missing Movies Subtitles', replace_existing=True) def __upgrade_subtitles_task(self): - if settings.general.upgrade_subs and \ - (settings.general.use_sonarr or settings.general.use_radarr): + if settings.general.use_sonarr or settings.general.use_radarr: self.aps_scheduler.add_job( upgrade_subtitles, IntervalTrigger(hours=int(settings.general.upgrade_frequency)), max_instances=1, coalesce=True, misfire_grace_time=15, id='upgrade_subtitles', name='Upgrade Previously Downloaded Subtitles', replace_existing=True) - else: - try: - self.aps_scheduler.remove_job(job_id='upgrade_subtitles') - except JobLookupError: - pass def __randomize_interval_task(self): for job in self.aps_scheduler.get_jobs(): |