|
|
|
@ -83,12 +83,13 @@ scheduler.add_listener(task_listener, EVENT_JOB_SUBMITTED | EVENT_JOB_EXECUTED)
|
|
|
|
|
if not args.no_update:
|
|
|
|
|
if settings.general.getboolean('auto_update'):
|
|
|
|
|
scheduler.add_job(check_updates, IntervalTrigger(hours=6), max_instances=1, coalesce=True,
|
|
|
|
|
misfire_grace_time=15, id='update_bazarr', name='Update bazarr from source on Github')
|
|
|
|
|
misfire_grace_time=15, id='update_bazarr', name='Update bazarr from source on Github' if not args.release_update else 'Update bazarr from release on Github')
|
|
|
|
|
else:
|
|
|
|
|
scheduler.add_job(check_updates, CronTrigger(year='2100'), hour=4, id='update_bazarr',
|
|
|
|
|
name='Update bazarr from source on Github')
|
|
|
|
|
name='Update bazarr from source on Github' if not args.release_update else 'Update bazarr from release on Github')
|
|
|
|
|
scheduler.add_job(check_releases, IntervalTrigger(hours=6), max_instances=1, coalesce=True,
|
|
|
|
|
misfire_grace_time=15, id='update_release', name='Update release info')
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
scheduler.add_job(check_releases, IntervalTrigger(hours=6), max_instances=1, coalesce=True, misfire_grace_time=15,
|
|
|
|
|
id='update_release', name='Update release info')
|
|
|
|
|