fix updater
All checks were successful
Update channel domains / update (push) Successful in 17s

This commit is contained in:
2025-01-17 22:46:44 +01:00
parent 22b61234a9
commit a901b6ecc0

View File

@@ -262,7 +262,7 @@ def updateFromZip(message=config.get_localized_string(80050)):
hash = fixZipGetHash(localfilename) hash = fixZipGetHash(localfilename)
logger.info(hash) 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]) size = sum([zinfo.file_size for zinfo in zip.filelist])
cur_size = 0 cur_size = 0
for member in zip.infolist(): for member in zip.infolist():
@@ -287,7 +287,7 @@ def updateFromZip(message=config.get_localized_string(80050)):
if extractedDir != addonDir: if extractedDir != addonDir:
removeTree(addonDir) removeTree(addonDir)
xbmc.sleep(1000) xbmc.sleep(1000)
logger.info("prima di rinominare")
rename(extractedDir, 'plugin.video.kod') rename(extractedDir, 'plugin.video.kod')
addonDir = filetools.join(destpathname, 'plugin.video.kod') addonDir = filetools.join(destpathname, 'plugin.video.kod')