Playing web-radio on startup?

  Thread Rating:
  • 0 Vote(s) - 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
mini-yo Offline
Junior Member
Posts: 1
Joined: Nov 2015
Reputation: 0
Post: #4
"generate a plain textfile named autoexec.py
from the script below and copy it to your xbmc
script folder.... "

Sorryyyy, sorrryy, sorrryyyyy. Where is the xbmc script folder ? I'm accesing from windows 10 trough the network to my RPI (kodi / openelec) and i have not been able to found it.
I have adcquire and old tube radio and I'd like RPI to start in whatever radio (basically BBC)........ the projects I've found seems too complex for my skills but I'm able to install addons, configure, etc......

Can someone help me?

Sorry for my eng

Thanks !!!!!
find quote
Concestly Offline
Senior Member
Posts: 108
Joined: Sep 2015
Reputation: 1
Post: #5
You will find the folder, C:\Program Files\XBMC\scripts. And i know about radio stream but not specific to BBC radio streaming.
find quote