From 99cac6e22555378e87ddacc41deb8412422f9e3c Mon Sep 17 00:00:00 2001 From: pipcat Date: Wed, 28 Nov 2018 09:24:40 +0100 Subject: [PATCH] Alternativa a ziptools/zipfile --- plugin.video.alfa/platformcode/updater.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/platformcode/updater.py b/plugin.video.alfa/platformcode/updater.py index ce417c0e..059c4158 100644 --- a/plugin.video.alfa/platformcode/updater.py +++ b/plugin.video.alfa/platformcode/updater.py @@ -122,8 +122,13 @@ def check_addon_updates(verbose=False): # Descomprimir zip dentro del addon # --------------------------------- - unzipper = ziptools.ziptools() - unzipper.extract(localfilename, config.get_runtime_path()) + try: + unzipper = ziptools.ziptools() + unzipper.extract(localfilename, config.get_runtime_path()) + except: + import xbmc + xbmc.executebuiltin('XBMC.Extract("%s", "%s")' % (localfilename, config.get_runtime_path())) + time.sleep(1) # Borrar el zip descargado # ------------------------