cpd73 wrote: > I'm using the JSONRPC interface. This has a "trackinfo" command that > returns the details. Usually I'm passing it a "track_id:" parameter. I > looked at the code, and for the TuneIn options to appear, it needs a > URL. I tried adding this, and inittially it works. I use the "status" > JSONRPC command to get the list of tracks in the playqueue. This can > also return a track's URL - so I used that. However, if the stream's > meta-data changes, or the web-page is refreshed, this URL changes. > Initially it is the "http://opml.radiotime.com/..." URL, but afterwards > it becomes the station's real URL. The TuneIn URL works, the real URL > does not. I know of no way to force LMS to just always return the TuneIn > URLs. > > However, I have noticed that if I do not pass an ID to "trackinfo", but > instead just pass the track's index in the queue instead, the LMS code > uses this index to lookup the track, and this seems to then retrieve the > TuneIn URL. > > This should be resolved in the next Material release.
The change that is suggested by Michael means than for a plugin routine registered for trackinfohandler - the routine will now use the passed client ref to obtain the URL of the song that is being played by streamingcontroller as long as it exists otherwise it will use the passed URL, previously it always used the passed URL. It seems your code is doing something similar. ------------------------------------------------------------------------ bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110714 _______________________________________________ Squeezecenter mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/squeezecenter
