Kodi Community Forum

Full Version: Playing web-radio on startup?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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
:bowdown: thank you so much, you're a star. :bowdown:
"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 !!!!!
You will find the folder, C:\Program Files\XBMC\scripts. And i know about radio stream but not specific to BBC radio streaming.