Playing web-radio on startup?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
edge83 Offline
Junior Member
Posts: 4
Joined: May 2005
Reputation: 0
Post: #1
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.
find quote
Rana Offline
Junior Member
Posts: 20
Joined: Jul 2004
Reputation: 0
Thumbs Up   
Post: #2
(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
find quote
edge83 Offline
Junior Member
Posts: 4
Joined: May 2005
Reputation: 0
Post: #3
:bowdown: thank you so much, you're a star. :bowdown:
find quote