mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-15 10:25:13 +08:00
Merge branch 'development'
This commit is contained in:
commit
6ea3f81338
3 changed files with 12 additions and 1 deletions
|
@ -12,5 +12,6 @@ py-pretty
|
|||
pycountry
|
||||
requests
|
||||
subliminal
|
||||
tzlocal
|
||||
urllib3
|
||||
waitress
|
|
@ -7,8 +7,13 @@ from check_update import *
|
|||
|
||||
from apscheduler.schedulers.background import BackgroundScheduler
|
||||
from datetime import datetime
|
||||
from tzlocal import get_localzone
|
||||
|
||||
if str(get_localzone()) == "local":
|
||||
scheduler = BackgroundScheduler(timezone=utc)
|
||||
else:
|
||||
scheduler = BackgroundScheduler()
|
||||
|
||||
scheduler = BackgroundScheduler()
|
||||
if automatic == 'True':
|
||||
scheduler.add_job(check_and_apply_update, 'interval', hours=6, max_instances=1, coalesce=True, misfire_grace_time=15, id='update_bazarr', name='Update bazarr from source on Github')
|
||||
else:
|
||||
|
|
|
@ -12,5 +12,10 @@ except SystemExit as e:
|
|||
|
||||
try:
|
||||
pip.main(['install', '--user', 'apprise'])
|
||||
except SystemExit as e:
|
||||
pass
|
||||
|
||||
try:
|
||||
pip.main(['install', '--user', 'tzlocal'])
|
||||
except SystemExit as e:
|
||||
pass
|
Loading…
Reference in a new issue