This commit is contained in:
@@ -262,7 +262,7 @@ def updateFromZip(message=config.get_localized_string(80050)):
|
||||
hash = fixZipGetHash(localfilename)
|
||||
logger.info(hash)
|
||||
|
||||
with zipfile.ZipFile(filetools.file_open(localfilename, 'rb', vfs=False)) as zip:
|
||||
with zipfile.ZipFile(filetools.file_open(localfilename, 'rb', vfs=True)) as zip:
|
||||
size = sum([zinfo.file_size for zinfo in zip.filelist])
|
||||
cur_size = 0
|
||||
for member in zip.infolist():
|
||||
@@ -287,7 +287,7 @@ def updateFromZip(message=config.get_localized_string(80050)):
|
||||
if extractedDir != addonDir:
|
||||
removeTree(addonDir)
|
||||
xbmc.sleep(1000)
|
||||
|
||||
logger.info("prima di rinominare")
|
||||
rename(extractedDir, 'plugin.video.kod')
|
||||
addonDir = filetools.join(destpathname, 'plugin.video.kod')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user