From b14fda20fbc5b405ae4de166623c3f463fc08d9b Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Fri, 8 Aug 2014 10:26:39 -0500 Subject: [PATCH] write the file based on the true source xbmcvfs.File --- resources/lib/vfs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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):