PDA

View Full Version : LastFM-stream on startup


Qwyrp
2008-08-28, 19:59
How can I play this lastFM stream (lastfm://qwyrp/artist/U2/similarartists) while starting up the xbox?
I believe something with autoexec.py

dephyre
2008-08-29, 10:04
How can I play this lastFM stream (lastfm://qwyrp/artist/U2/similarartists) while starting up the xbox?
I believe something with autoexec.pyWell if you just make a playlist you can point to it in: settings->skin settings->general, "Enable Playlist at Startup". (At least using PMIII)

dephyre
2008-08-29, 10:05
Scratch that. Just settings->skin settings in PMIII.

Qwyrp
2008-08-29, 10:50
Yep, but this only works forplaylist i.e. PLS, M3U . I tried toe put lastfm://qwyrp/artist/U2/similarartists in a M3U file but it doesn't work. This stream works fine when I paste it from my (pc)browser to my XBOX

fuggin
2008-09-25, 11:58
import time
time.sleep(2)
import xbmc
xbmc.executebuiltin("XBMC.PlayMedia(lastfm://user/fuggin/neighbours)")

This is my autoexec.py

The 2 second delay is needed to allow xbmc time to login to lastfm at boot. Then my lastfm neighbours music starts playing.

From this you'll be able to figure out how to do what you want.