From 7d5bc71b325070feecd1fe708a76eae13b356484 Mon Sep 17 00:00:00 2001 From: Halali Date: Wed, 13 Mar 2019 23:02:37 +0100 Subject: [PATCH] Continue developing --- bazarr/scheduler.py | 5 +++-- views/settings.tpl | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bazarr/scheduler.py b/bazarr/scheduler.py index f23e47af4..74226d3a2 100644 --- a/bazarr/scheduler.py +++ b/bazarr/scheduler.py @@ -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') diff --git a/views/settings.tpl b/views/settings.tpl index 3df9f406f..34a8bf8aa 100644 --- a/views/settings.tpl +++ b/views/settings.tpl @@ -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