Update check_update.py

pull/479/head^2
morpheus65535 5 years ago committed by GitHub
parent 3d8e8ee59b
commit b86c05202b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save