diff --git a/resources/lib/vfs.py b/resources/lib/vfs.py index 6b10b26..5d4b345 100644 --- a/resources/lib/vfs.py +++ b/resources/lib/vfs.py @@ -94,7 +94,11 @@ class ZipFileSystem(Vfs): return False def put(self,source,dest): - self.zip.write(source,utils.encode(dest),compress_type=zipfile.ZIP_DEFLATED) + + aFile = xbmcvfs.File(xbmc.translatePath(source),'r') + + self.zip.writestr(utils.encode(dest),aFile.read(),compress_type=zipfile.ZIP_DEFLATED) + return True def rmdir(self,directory):