2011-06-15, 22:01
Running on windows 7 64 bit.
I'm trying to extract a zip which is downloaded from the internet by my plugin. I'm using this command:
but it fails, here are the lines from the log:
It says the zip is broken, but when I open this zip with any other zip utility it opens without any problem.Before calling the extract I put sleep for a few seconds just to make sure... What could be the reason? What am I doing wrong?
I'm trying to extract a zip which is downloaded from the internet by my plugin. I'm using this command:
Code:
xbmc.executebuiltin('XBMC.Extract("%s","%s")' % (downloadedFilePath, __TEMP_SUB_DIR__))
but it fails, here are the lines from the log:
Code:
22:56:40 T:9156 M:1204428800 DEBUG: Thread Jobworker 9156 terminating (autodelete)
22:56:41 T:7268 M:1204482048 NOTICE: ### [Hebrew Subtitles-gui] - XBMC.Extract("C:\Users\shai\AppData\Roaming\XBMC\addons\script.hebrew.subtitles\resources\lib\temp\downloaded.zip","C:\Users\shai\AppData\Roaming\XBMC\addons\script.hebrew.subtitles\resources\lib\temp")
22:56:41 T:536 M:1204482048 DEBUG: CZipManager::GetZipList - Processing zip://C%3a%5cUsers%5cshai%5cAppData%5cRoaming%5cXBMC%5caddons%5cscript%2ehebrew%2esubtitles%5cresources%5clib%5ctemp%5cdownloaded%2ezip/
22:56:41 T:536 M:1204473856 DEBUG: ZipManager: broken file C:\Users\shai\AppData\Roaming\XBMC\addons\script.hebrew.subtitles\resources\lib\temp\downloaded.zip!
22:56:41 T:8940 M:1204461568 DEBUG: Thread Jobworker 8940 terminating (autodelete)
22:56:42 T:7772 M:1204498432 DEBUG: Thread Jobworker 7772 terminating (autodelete)
22:56:42 T:1828 M:1205710848 DEBUG: Thread Jobworker 1828 terminating (autodelete)
It says the zip is broken, but when I open this zip with any other zip utility it opens without any problem.Before calling the extract I put sleep for a few seconds just to make sure... What could be the reason? What am I doing wrong?