2016-08-13, 06:22
Hi,
I'm writing an internet radio plugin for Kodi which allows me to specify custom streams, artwork and metadata and present them nicely in Kodi's native interface.
So far I've used xbmcplugin.AddDirectoryItem() to create a list of radio streams in Kodi from sources listed in an xml file. The streams show up correctly, with the artwork and information I've specified.
My next aim is to scrape the current artist and track information from the radio station's website, and update the OSD in Kodi to match. Getting the data should be pretty straightforward, but I don't know where to start with feeding it to Kodi. Is there a method for updating the OSD during playback, or will I need to take more control of the way the stream is played in order to achieve this?
My addon can be found over at GitHub, for reference.
Thanks in advance.
Cheers,
Jon
I'm writing an internet radio plugin for Kodi which allows me to specify custom streams, artwork and metadata and present them nicely in Kodi's native interface.
So far I've used xbmcplugin.AddDirectoryItem() to create a list of radio streams in Kodi from sources listed in an xml file. The streams show up correctly, with the artwork and information I've specified.
My next aim is to scrape the current artist and track information from the radio station's website, and update the OSD in Kodi to match. Getting the data should be pretty straightforward, but I don't know where to start with feeding it to Kodi. Is there a method for updating the OSD during playback, or will I need to take more control of the way the stream is played in order to achieve this?
My addon can be found over at GitHub, for reference.
Thanks in advance.
Cheers,
Jon