2010-01-07, 18:09
Hi,
I'm new to python and XBMC plugin development. I'm working on an integration with Spotify. I have got it working now and I can search and play songs but as soon as I change the type to "music" with the setInfo method on ListItem XBMC won't play the stream any more. In the log file I get " ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:8080/stream"
I add all the listitems using this method:
url is an http URL to an ogg stream (eg. http://localhost:8080/stream).
If I change the type from "music" to anything else it plays (but using the DVDPlayer I think) but then I can't see the song information etc.
Thanks for any help.
Bobo
I'm new to python and XBMC plugin development. I'm working on an integration with Spotify. I have got it working now and I can search and play songs but as soon as I change the type to "music" with the setInfo method on ListItem XBMC won't play the stream any more. In the log file I get " ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:8080/stream"
I add all the listitems using this method:
Code:
liz=xbmcgui.ListItem(name, iconImage=iconimage, thumbnailImage=iconimage)
liz.setInfo(type="music", infoLabels={ "title": name, "artist": artist, "album": album } )
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=liz,isFolder=False)
url is an http URL to an ogg stream (eg. http://localhost:8080/stream).
If I change the type from "music" to anything else it plays (but using the DVDPlayer I think) but then I can't see the song information etc.
Thanks for any help.
Bobo