How to get info on current playing song?
#1
hi,

i use an xbmc version from the beginning of march 2004 (don't know exactly).

there doesn't seem to be a way to get info on the current song xbmc is playing.

@darkie: could you please add a method for this. best would be something like xbmc.player().currentitem() returning an object of class xbmc.playlistitem().

also xbmc.playlistitem().getduration() returns 0 in my version at least for mp3, haven't tried other things, has that been fixed?

i have some knoweledge in embedding a python-interpreter in other applications exporting app-functions as python-modules, and i would do it my self but i don't have the means to compile xbmc.

- stephan
Reply
#2
darkie while you are at it could it be possible to let scripts run whenever the user wants to shutdown xbmc just like scripts are run whenever xbmc starts up.
Reply
#3
Quote:also xbmc.playlistitem().getduration() returns 0 in my version at least for mp3, haven't tried other things, has that been fixed?
nothing wrong with that, with xbmc.playlistitem() you create a new playlistitem with everything set to 0, that is why getduration() returns 0. if you have created a playlist and you use something like playlist[3].getduration() with 0 as a result, then it is a bug Smile
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
Reply
#4
i just had a great idea. we should make a python script that incorporates a web server so that we can put what song/movie is playing within our sig. that would rock.
Reply
#5
@darkie, well, thats exactly what heppens. i load a playlist, get sime item on it, lets las pl[7], and getduration() returns 0.
Reply
#6
(muerte @ april 09 2004,21:14 Wrote:i just had a great idea. we should make a python script that incorporates a web server so that we can put what song/movie is playing within our sig. that would rock.
why not use the xbmc web server? it's probably possible, though a bit unsecure
Reply

Logout Mark Read Team Forum Stats Members Help
How to get info on current playing song?0