HTTP APi GetDirectory: [music] AND / ?
#1
Question 
Hai all,

I'm still working on my XBMC script for the Philips Pronto.
For the 'Directory browser' I want to list all directories and music files.
Following the API:
<quote>
To specify multiple file extensions use the bar "|" character e.g. .mp3|.wma.) mask can also take the form: "*" or "/" and returns just folders. An empty mask (i.e."") returns all files and folders.
</quote>

I tried the following, which does not seem to work:
<code>
GetDirectory(smb://server/Music/;[music]|/)
</code>


How can I get all music files AND directories at once ?


Greetz,
K
Reply
#2
Nobody ?
Reply
#3
Code:
else if (command == "getmedialocation")         retVal = xbmcGetMediaLocation(numParas, paras);


int CXbmcHttp::xbmcGetMediaLocation(int numParas, CStdString paras[])
{
  // getmediadirectory&parameter=type;location;options
  // options = showdate, pathsonly
  // returns a listing of
  // label;path;0|1=folder;date
Reply
#4
spiff Wrote:
Code:
else if (command == "getmedialocation")         retVal = xbmcGetMediaLocation(numParas, paras);


int CXbmcHttp::xbmcGetMediaLocation(int numParas, CStdString paras[])
{
  // getmediadirectory&parameter=type;location;options
  // options = showdate, pathsonly
  // returns a listing of
  // label;path;0|1=folder;date

Sorry, but I don't get it to work ...
Can you tell me what I'm doing wrong ?
Reply
#5
getDirectory(path; *)

Works perfectly, you just need to urlEncode the parameter.
If you have problems please read this before posting

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.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#6
Topfs2 Wrote:getDirectory(path; *)

Works perfectly, you just need to urlEncode the parameter.
Thanks for your reply, but that's not what I want to do ...
I want to return all music files and directories only.
Reply
#7
Code:
GetMediaLocation(type; [path]; [option]; [lineStart; [numLines]])
works for me.

If type = music it returns only directories and music files.
Reply

Logout Mark Read Team Forum Stats Members Help
HTTP APi GetDirectory: [music] AND / ?0