(edge83 @ may 24 2005,13:34 Wrote:i hope i'm not asking a stupid question. i read somewhere that xbmc supports playing an mp3 on startup. is there a way to make it automatically connect to and play a web radio stream on startup?
many thanks.
hi,
try this one if you like
generate a plain textfile named autoexec.py
from the script below and copy it to your xbmc
script folder....
# [script start]
# this is an autoexec.py scripts for xbmc,
# starts a webradio stream on startup of xbmc
#
# - copy this file to xbmc\scripts folder
# - add a shoutcast pls file named shoutcast.pls
# to the xbmc\scripts folder
#
#
import xbmc
file = 'q:\\scripts\\shoutcast.pls'
pls = xbmc.playlist(0)
pls.load(file)
player = xbmc.player()
player.play(pls)
#[script end]
grab your favorite station from shoutcast and
copy the pls file to the scriptfolder as "shoutcast.pls"
restart xbmc and you should get what you asked for ...
cu
rana