Continue developing

pull/388/head
Halali 6 years ago
parent 23e2bec8a0
commit b6b14d93e7

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

@ -1993,9 +1993,9 @@
% from get_args import args % from get_args import args
% from check_update import get_version % from check_update import get_version
% if args.no_update or args.release_update: % if args.no_update:
$("#div_update").hide(); $("#div_update").hide();
% elif get_version()[1] != 'git': % elif get_version()[1] != 'git' or args.release_update:
$("#div_branch").hide(); $("#div_branch").hide();
% end % end
% import sys % import sys

Loading…
Cancel
Save