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 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')

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

Loading…
Cancel
Save