Posts: 207
Joined: Feb 2013
Reputation:
6
L0RE
Senior Member
Posts: 207
fileLocation="\userdata\addon_data\[PLUGIN]\temp\download\[RARFILE]"
subdir="\userdata\addon_data\[PLUGIN]\temp\subs"
xbmc.executebuiltin("XBMC.Extract(" + fileLocation + ", " + subdir + ")", True)
Works with an Rar in kodi17
Doens't work on Kodi18 with Rar
Used in service.subtitles.tv4user
Hope its a Bug in Kodi18, not a obsoleted feature
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
you have to install / enable the add-on, vfs.rar.
Posts: 17,859
Joined: Jul 2011
Reputation:
371
Maybe we should amend the documentation that if you use this function you need to check and/or enable the vfs addon you need.
Posts: 207
Joined: Feb 2013
Reputation:
6
L0RE
Senior Member
Posts: 207
How should it be used?
I Dont file any Dokumentation. When the Plugin is enabled, the Extract still dons't work . is it somthing like xbmfs.rar ?
And how can a Plugin be done working in Kodi17 and Kodi18?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
well somebody just has to write the vfs add-ons.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
2017-11-02, 19:20
(This post was last modified: 2017-11-02, 19:39 by spiff.)
well that was pretty easy. got a libarchive based vfs going. still early but everything works, playing some music out of tar.bz2 files as we speak (and 7z works fine as well yes).
won't work on it more today, but notspiff/vfs.libarchive. you have to provide libarchive yourself, so right now linux is the easiest. you will need the top commit of 'archive' branch from notspiff/xbmc.
urls are archive://<url encoded path to archive>/<file in archive>. subfolders and shit not yet handled and the archive file has to be local.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
i just landed the add-on in the main binary add-on repo. everything should work , archives from network, archives in archives, ... please test shit sh*t out of it.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
2017-12-22, 01:51
(This post was last modified: 2017-12-22, 01:52 by spiff.)
you need vfs.libarchive as discussed further up in the thread for archive://, vfs.rar or vfs.libarchive for rar://, while zip is built-in.