mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-27 01:57:33 +00:00
Continue developing
This commit is contained in:
parent
8b5a04cb27
commit
7d5bc71b32
2 changed files with 5 additions and 4 deletions
|
@ -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')
|
||||
|
|
|
@ -2061,9 +2061,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…
Reference in a new issue