mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-24 08:43:01 +00:00
Bug in update process
This commit is contained in:
parent
b96d2b0d8e
commit
3a4e646c76
1 changed files with 3 additions and 3 deletions
|
@ -11,12 +11,12 @@ current_working_directory = os.path.dirname(__file__)
|
||||||
def check_and_apply_update():
|
def check_and_apply_update():
|
||||||
g = git.cmd.Git(current_working_directory)
|
g = git.cmd.Git(current_working_directory)
|
||||||
result = g.pull('origin', branch)
|
result = g.pull('origin', branch)
|
||||||
if result != 'Already up-to-date.':
|
if result.startswith('Already'):
|
||||||
|
logging.info('No new version of Bazarr available.')
|
||||||
|
else:
|
||||||
#logging.info('Bazarr updated to latest version and need to be restarted.')
|
#logging.info('Bazarr updated to latest version and need to be restarted.')
|
||||||
logging.info(result)
|
logging.info(result)
|
||||||
updated()
|
updated()
|
||||||
else:
|
|
||||||
logging.info('No new version of Bazarr available.')
|
|
||||||
|
|
||||||
def updated():
|
def updated():
|
||||||
conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30)
|
conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30)
|
||||||
|
|
Loading…
Reference in a new issue