Library Names in GetPlaylist - HTTP API
#1
Question 
Is there any way to return the library names of the playlist items through the http api? Something similar to what GetCurrentlyplaying does. This is the command we are using:


Code:
http://10.0.0.80:8080/xbmcCmds/xbmcHttp?command=GetPlaylistContents(0)

It returns the the complete filename and path which can be ridiculously long. We are just trying to clean up the view and make it easier to pick a song with just a quick glance.

Am I missing something? Perhaps something like:

Code:
http://10.0.0.80:8080/xbmcCmds/xbmcHttp?command=GetPlaylistContents(0;libraryname)


I know we could query the db which would be fine for a short playlist but for a long playlist, that would be too much load for the Iphone.

Cheers,
Rand
Reply
#2
I wrote a patch to add this functionality to the webserver. You can find it here. Right now the duration returned is in seconds. Is there any way to return the duration in a standard "mmConfuseds" format?

Cheers,
Rand
Reply
#3
I was also looking for something like this.

Thanks !
Reply
#4
The patch is now in SVN. I fixed the duration so it returns time properly. Since then I have added the same functionality for video playlists as well. I updated the diff on trac but since the ticket has been closed (since it made it into svn) I don't know if anyone has seen it.

Rand
Reply
#5
I'll try it out when the new T3CH build gets there.
What is in the Title info ? Author - Song ?

Kristof
Reply
#6
Nope. If you use the command:

Code:
http://10.0.0.80:8080/xbmcCmds/xbmcHttp?command=GetPlaylistContents(0;ShowTitle;ShowDuration)

It will return filenameandpath;songtitle;songduration. You can also mix and match the options to your liking. Currently there are 3 options, ShowTitle, ShowDuration, ShowIndex.

Rand
Reply

Logout Mark Read Team Forum Stats Members Help
Library Names in GetPlaylist - HTTP API0