Bug XBMC.Extract
#46
(2020-04-13, 13:06)malte Wrote: Has anybody else issues with 7z-files? I created a simple text file and compressed it with Windows version of 7-zip.

I used following code to test it (quite similar to zachs code above):

import xbmcvfs
from urllib.parse import quote_plus

file_7z = "C:\\Users\\Malte\\Documents\\Archivetests\\Test.7z"
archive_file = 'archive://%(archive_file)s' % {'archive_file': quote_plus(xbmc.translatePath(file_7z))}
(dirs, files) = xbmcvfs.listdir(archive_file)
print(files)

When I run this code inside a Kodi addon, Kodi just crashes without any error message. When I change the 7z file to a zip file, the same code runs without any issues.

I tested several compression types (lzma, lzma2, bzip2, ...) and also tested with simple files or files in folders etc. All with the same result.

Also tested with Kodi Leia (version 1.0.7 of Archive support) and Matrix (version 1.2.0 of Archive support)

Does anybody has an idea what is wrong with my test?

Documented issue on that already here
https://github.com/xbmc/vfs.libarchive/issues/37
Reply
#47
(2020-04-13, 23:43)zachmorris Wrote:
(2020-04-13, 13:06)malte Wrote: Has anybody else issues with 7z-files? I created a simple text file and compressed it with Windows version of 7-zip.

I used following code to test it (quite similar to zachs code above):

import xbmcvfs
from urllib.parse import quote_plus

file_7z = "C:\\Users\\Malte\\Documents\\Archivetests\\Test.7z"
archive_file = 'archive://%(archive_file)s' % {'archive_file': quote_plus(xbmc.translatePath(file_7z))}
(dirs, files) = xbmcvfs.listdir(archive_file)
print(files)

When I run this code inside a Kodi addon, Kodi just crashes without any error message. When I change the 7z file to a zip file, the same code runs without any issues.

I tested several compression types (lzma, lzma2, bzip2, ...) and also tested with simple files or files in folders etc. All with the same result.

Also tested with Kodi Leia (version 1.0.7 of Archive support) and Matrix (version 1.2.0 of Archive support)

Does anybody has an idea what is wrong with my test?

Documented issue on that already here
https://github.com/xbmc/vfs.libarchive/issues/37 
Ok, thanks. Didn't see that.
Reply



Logout Mark Read Team Forum Stats Members Help
XBMC.Extract0
This forum uses Lukasz Tkacz MyBB addons.