PDA

View Full Version : Newbee: First script not working


vlammetje
2007-12-03, 12:31
I can start streaming internetradio-stations by selecting it within XBMC.
I am trying to autorun one of those internetradio streams on XBMC-startup.
The stream is configured on the XBMC at: E:\\Music\\Radio\\Veronica FM.strm

At this moment it is not working, the XBMC is working as before, on startup nothing special is happening. Please can someone give a hint or help me out.

I did the following:

created a text-file called "autoexec.py" and saved it in the directory "Q\\scripts".
In this file I put the following statements:
import xbmc

xbmc.executescript('q:\\scripts\\StartUpMP3\\veron ica.py')


Created the text-file 'veronica.py' and saved it in the above location.
In this file I put the following statements:
import xbmc

file = 'E\\Music\\Radio\\Veronica FM.strm'

xbmc.Player().play(file)

Nuka1195
2007-12-03, 14:40
add a colon after E. "E:\\..."

vlammetje
2007-12-03, 16:06
Thank you for your answer. Although that semicolon offcourse has to be in place it didn't solve the problem.

I'm go on with my search, but more ideas are welcome