mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-24 00:33:27 +00:00
Fixed upgrade process to properly use bazarr.zip asset #1379
This commit is contained in:
parent
99fc282b07
commit
b02e0ec7ec
1 changed files with 3 additions and 1 deletions
|
@ -121,6 +121,8 @@ def apply_update():
|
||||||
logging.debug('BAZARR is trying to unzip this release to {0}: {1}'.format(bazarr_dir, bazarr_zip))
|
logging.debug('BAZARR is trying to unzip this release to {0}: {1}'.format(bazarr_dir, bazarr_zip))
|
||||||
try:
|
try:
|
||||||
with ZipFile(bazarr_zip, 'r') as archive:
|
with ZipFile(bazarr_zip, 'r') as archive:
|
||||||
|
zip_root_directory = ''
|
||||||
|
if len({item.split('/')[0] for item in archive.namelist()}) == 1:
|
||||||
zip_root_directory = archive.namelist()[0]
|
zip_root_directory = archive.namelist()[0]
|
||||||
|
|
||||||
if os.path.isdir(build_dir):
|
if os.path.isdir(build_dir):
|
||||||
|
|
Loading…
Reference in a new issue