mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-10 00:37:49 +08:00
Update check_update.py
This commit is contained in:
parent
3d8e8ee59b
commit
b86c05202b
1 changed files with 1 additions and 4 deletions
|
@ -65,11 +65,8 @@ def check_and_apply_update():
|
||||||
release = releases[0]
|
release = releases[0]
|
||||||
latest_release = release['tag_name']
|
latest_release = release['tag_name']
|
||||||
|
|
||||||
if ('v' + os.environ["BAZARR_VERSION"]) != latest_release and settings.general.branch == 'master':
|
if ('v' + os.environ["BAZARR_VERSION"]) != latest_release:
|
||||||
update_from_source()
|
update_from_source()
|
||||||
elif settings.general.branch != 'master':
|
|
||||||
notifications.write(msg="Can't update development branch from source", queue='check_update') # fixme
|
|
||||||
logging.info("BAZARR Can't update development branch from source") # fixme
|
|
||||||
else:
|
else:
|
||||||
notifications.write(msg='Bazarr is up to date', queue='check_update')
|
notifications.write(msg='Bazarr is up to date', queue='check_update')
|
||||||
logging.info('BAZARR is up to date')
|
logging.info('BAZARR is up to date')
|
||||||
|
|
Loading…
Reference in a new issue