diff options
author | morpheus65535 <[email protected]> | 2023-11-28 20:05:46 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2023-11-28 20:05:46 -0500 |
commit | fd5b087f929b6e00164ad80f7e131c8a4b279653 (patch) | |
tree | d063d34ffce9ab204d6a95696f00d7149efa0188 | |
parent | cb2023d94e0603aa28c258c4f201300285a74b68 (diff) | |
download | bazarr-fd5b087f929b6e00164ad80f7e131c8a4b279653.tar.gz bazarr-fd5b087f929b6e00164ad80f7e131c8a4b279653.zip |
Fixed upgrade subtitles tas not removed from scheduler when disabled in settings. #2308
-rw-r--r-- | bazarr/app/scheduler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bazarr/app/scheduler.py b/bazarr/app/scheduler.py index 8abdab14e..ca1684673 100644 --- a/bazarr/app/scheduler.py +++ b/bazarr/app/scheduler.py @@ -284,6 +284,8 @@ class Scheduler: 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: + self.aps_scheduler.remove_job(job_id='upgrade_subtitles') def __randomize_interval_task(self): for job in self.aps_scheduler.get_jobs(): |