Fix for Bazarr not updating automatically anymore.

This commit is contained in:
Louis Vézina 2019-01-21 19:20:32 -05:00
parent 834f4b1cdd
commit 560cf53fe1

View file

@ -61,7 +61,7 @@ else:
scheduler = BackgroundScheduler() scheduler = BackgroundScheduler()
if no_update is False: if no_update is False:
if settings.sonarr.auto_update: if settings.general.getboolean('auto_update'):
scheduler.add_job(check_and_apply_update, IntervalTrigger(hours=6), max_instances=1, coalesce=True, misfire_grace_time=15, id='update_bazarr', name='Update bazarr from source on Github') scheduler.add_job(check_and_apply_update, IntervalTrigger(hours=6), max_instances=1, coalesce=True, misfire_grace_time=15, id='update_bazarr', name='Update bazarr from source on Github')
else: else:
scheduler.add_job(check_and_apply_update, CronTrigger(year='2100'), hour=4, id='update_bazarr', name='Update bazarr from source on Github') scheduler.add_job(check_and_apply_update, CronTrigger(year='2100'), hour=4, id='update_bazarr', name='Update bazarr from source on Github')