From 42bdbf01b06250e58b6786dc0fd9caf176499cb2 Mon Sep 17 00:00:00 2001 From: marco Date: Sat, 18 Apr 2020 10:34:04 +0200 Subject: [PATCH] Revert "test" This reverts commit a37f5e91 --- specials/quasar_download.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/specials/quasar_download.py b/specials/quasar_download.py index 00b5ca1e..a2e5c884 100644 --- a/specials/quasar_download.py +++ b/specials/quasar_download.py @@ -34,16 +34,6 @@ def download(item=None): def extract(): import zipfile support.log('Estraggo Quasar in:', quasar_path) - with open(filename, 'r+b') as f: - data = f.read() - pos = data.find(b'\x50\x4b\x05\x06') # End of central directory signature - if pos > 0: - f.seek(pos + 20) # +20: see secion V.I in 'ZIP format' link above. - hash = f.read()[2:] - f.seek(pos + 20) - f.truncate() - f.write( - b'\x00\x00') # Zip file comment length: 0 byte length; tell zip applications to stop reading. with zipfile.ZipFile(filename, 'r') as zip_ref: zip_ref.extractall(xbmc.translatePath("special://home/addons/"))