HTTP API - RAR issues
#1
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:

Code:
http://10.1.1.3:9080/xbmcCmds/xbmcHttp?command=GetMediaLocation&parameter=video;/mnt/drive2/Movies/Chop%20Shop
Example Output:
Code:
sph-chopshop.rar;rar://%2fmnt%2fdrive2%2fMovies%2fChop%20Shop%2fsph%2dchopshop%2erar/;1
The path being returned for the RAR is
Code:
rar:///the/path/to/the/rar/file.rar
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:

Code:
http://10.1.1.3:9080/xbmcCmds/xbmcHttp?command=GetMediaLocation&parameter=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 ?
Reply
#2
this should be the correct path for the file inside the rar:

Quote:rar://%2fmnt%2fdrive2%2fMovies%2fChop%20Shop%2fsph%2dchopshop%2erar/sph-chopshop.avi

im curious. have you tried adding this to a playlist from the http api and then play the playlist?

hmm i wonder if the http server is decoding the url-encoding of the path which is fouling everything up. the "%" may need to be encoded as "%25"
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
Id like to bump this thread

Iv written an entire iPhone webapp to easily select media on the phone and start playing with it as a remote, however it doesn't work on rar'd files.. =/ and all my media is inside rar containers =/ Just got some graphics touchup left on the gui then il release it to public but would be really awsome if it would have working rar support via http-api.

//max
Reply

Logout Mark Read Team Forum Stats Members Help
HTTP API - RAR issues0