PDA

View Full Version : How to get current playlist name?


stanley87
2007-02-18, 03:00
Hi all,

Im after a way to grab the current playing playlist name using python in XBMC to add in 2 my ResumeX script.

Any ideas?

There doesnt seem to be this method in Playlist class or in Info Labels which i think there should be.

Any help would be great.

Cheers
Stanley87

nad
2007-02-18, 23:30
Does the httpapi provide what you after?

stanley87
2007-02-19, 07:28
dont think so, i need to command that can get the playlist via a python script,if it is available in httpapi then i assume it should be around 4 python

nad
2007-02-20, 22:18
You can call httpapi from Python. Have a look at the online manual.

stanley87
2007-02-21, 01:22
wow, i read down the page and saw it can be used via Python. :-D, great:-D
playlist = xbmc.executehttpapi("GetCurrentPlaylist")

Cheers nad