2008-09-15, 10:44
From ticket http://trac.xbmc.org/ticket/4880#
Seems there are a few issues when dealing with RAR files through the HTTP API.
When GetMediaLocation? returns a list of files in a directory, it will show the following for an RAR:
Example Command:
Example Output:
The path being returned for the RAR is
Trying to recall GetMediaLocation? with this path returns an error.
Though it does return the files in the RAR if rar:// and the trailing slash is removed.
Example:
Which will return something like:
Though I can't seem to get the file to play using PlayFile by either leaving the rar:// or removing it.
Any ideas ?
Seems there are a few issues when dealing with RAR files through the HTTP API.
When GetMediaLocation? returns a list of files in a directory, it will show the following for an RAR:
Example Command:
Code:
http://10.1.1.3:9080/xbmcCmds/xbmcHttp?command=GetMediaLocation¶meter=video;/mnt/drive2/Movies/Chop%20Shop
Code:
sph-chopshop.rar;rar://%2fmnt%2fdrive2%2fMovies%2fChop%20Shop%2fsph%2dchopshop%2erar/;1
Code:
rar:///the/path/to/the/rar/file.rar
Though it does return the files in the RAR if rar:// and the trailing slash is removed.
Example:
Code:
http://10.1.1.3:9080/xbmcCmds/xbmcHttp?command=GetMediaLocation¶meter=video;%2fmnt%2fdrive2%2fMovies%2fChop%20Shop%2fsph%2dchopshop%2erar
Which will return something like:
Code:
sph-chopshop.avi;rar://%2fmnt%2fdrive2%2fMovies%2fChop%20Shop%2fsph%2dchopshop%2erar/sph-chopshop.avi;0
Though I can't seem to get the file to play using PlayFile by either leaving the rar:// or removing it.
Any ideas ?