PDA

View Full Version : How to use the xbmc.getmusicinfotag()


solexalex
2005-01-18, 23:12
hi !
i need to read some metadata of a pls file. this pls (shoutcast) file play a mp3 streaming file.

i wanted to get the metadata that can be found in the stream. it is possible to get these cause xbmc itself show these meta while playing the .pls file.

i tryed the xbmc.getmusicinfotag() but it returns that it is a xbmc.infotagmusic object. i don't know what to do with it... http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/cry.gif
what to do to get metadata??
thx

solexalex
2005-01-19, 02:05
first post edited, cause i didn't want to get some id3 infos but some metadatas informations...

Piscator
2005-01-19, 20:44
see online docs (http://members.cox.net/alexpoet/downloads/docs/xbmc.html) (also in sticky).

greetz,
piscator

solexalex
2005-01-21, 02:48
hi
thank you for your help.
anyway... if i know this command, i know where i found it ;)
what i want to know ( repeat mode=on ) is how this works ?
is it working only with audio cd ? or any audio files playing within xbmc...
getmusicinfotag(...)
getmusicinfotag() -- returns the musicinfotag of the current playing 'song'.

throws: exception, if player is not playing a file or current file is not a music file
i used tag=xbmc.getmusicinfotag() but the output show me that tag is << xbmc.musicinfotag object >> how to get some informations that come from that object ??
which tag will i get ? metadata or id3 tag ???

so, once again i thank you for your help, but it is not the answer of my question ;)

Piscator
2005-01-21, 11:59
oh, i meant the description of infotagmusic directly on top of the page. :d

class infotagmusic(.object)
infotagmusic class.

methods defined here:

getalbum(...)
getalbum() -- returns a string.

getartist(...)
getartist() -- returns a string.

getduration(...)
getduration() -- returns an integer.

getgenre(...)
getalbum() -- returns a string.

getreleasedate(...)
getreleasedate() -- returns a string.

gettitle(...)
gettitle() -- returns a string.

gettrack(...)
gettrack() -- returns an integer.

geturl(...)
geturl() -- returns a string.


it seems to me that xmbc.player().getmusicinfotag() just returns an object. so no need to worry if it's metadata or id3. you just can query the object with the defined methods. however, the info is a bit scarce. i just assume the methods don't have any more parameters.

and i assume it would work with any audio file, since streaming files in xbmc also show this info.

well, a lot of assumptions. i hope this helps a bit. never used this stuff myself.

greetz,
piscator

solexalex
2005-01-21, 15:05
cheers !! that help me very much !
may i ask you where did you get those infos ?
many time i try to use some stuff and i can't make them working cause i don't know the methods i can use...
i'll try it very soon and i'll tell you the result
c ya

Piscator
2005-01-22, 23:26
see online docs (http://members.cox.net/alexpoet/downloads/docs/xbmc.html) (also in sticky).

greetz,
piscator
the online docs (http://members.cox.net/alexpoet/downloads/docs/xbmc.html) in the sticky :d. didn't you click on them? though the info is scarce, i need them badly. and i also use the emulator on the pc, so i can debug the scripts more easily.

greetz,
piscator

solexalex
2005-01-24, 20:53
of course i know this doc !!
but the details of the getmusicinfotag... where did you learned the methods ?

Piscator
2005-01-24, 21:59
but my point is, it is in these docs. i copied pasted it directly from there... btw, did it work?

greetz,
piscator

solexalex
2005-01-25, 01:48
ok
i'm a bit of stupid... i didn't noticed the infotagmusic section... i was just hanging in the getinfotagmusic part of the doc...
sorry ;)