Robin Bowes said the following on 02/22/2006 08:04 PM: > One thought: would it be easier to simply launch a URL? For example, the > URL to play a LastFM station is something like: > http://slimserver:9000/plugins/LastFM/index.html?lastfm=playlfm&lastfmp1=user%2Frobinbowes%2Floved&player=00%3A04%3A20%3A06%3A3e%3A20 > > Perhaps the launch script should simply construct a similar URL? > > The script would need to know: > > slimserver url: http://slimserver:9000 > LastFM user: robinbowes > (optional?) player: (00%3A04%3A20%3A06%3A3e%3A20) > > The LastFM station would be parsed from the lastfm:// protocol link, e.g. > > lastfm://user/robinbowes/loved would become: > > LastFM station: user%2Frobinbowes%2Floved
I can confirm that this works. I took the following URL: http://slimserver:9000/plugins/LastFM/index.html?lastfm=playlfm&lastfmp1=user%2Frobinbowes%2Floved&player=00%3A04%3A20%3A06%3A3e%3A20 Then found the following station on LastFM: lastfm://user/angeltech/personal I replaced user%2Frobinbowes%2Floved with user%2Fangeltech%2Fpersonal to give this URL: http://slimserver:9000/plugins/LastFM/index.html?lastfm=playlfm&lastfmp1=user%2Fangeltech%2Fpersonal&player=00%3A04%3A20%3A06%3A3e%3A20 I opened this in Firefox and the angeltech personal station is now playing on my SB! I must put together a simple script that does this automatically. R. _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
