Revert "Revert "Merge branch 'stable' of https://github.com/kodiondemand/addon into stable""

This reverts commit cd19484c70.
This commit is contained in:
Alhaziel
2019-07-13 18:52:28 +02:00
parent cd19484c70
commit c25da23cb2
2 changed files with 21 additions and 92 deletions
+2
View File
@@ -3,6 +3,7 @@
# Zip Tools
# --------------------------------------------------------------------------------
import io
import os
import zipfile
@@ -17,6 +18,7 @@ class ziptools:
if not dir.endswith(':') and not os.path.exists(dir):
os.mkdir(dir)
file = io.FileIO(file)
zf = zipfile.ZipFile(file)
if not folder_to_extract:
self._createstructure(file, dir)