Kodi Community Forum

Full Version: HTTP APi GetDirectory: [music] AND / ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Nobody ?
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
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 ?
getDirectory(path; *)

Works perfectly, you just need to urlEncode the parameter.
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.
Code:
GetMediaLocation(type; [path]; [option]; [lineStart; [numLines]])
works for me.

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