Newbee: First script not working
#1
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:
  1. 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\\veronica.py')

[LIST=2]
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)

[/LIST]
Reply
#2
add a colon after E. "E:\\..."
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
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
Reply

Logout Mark Read Team Forum Stats Members Help
Newbee: First script not working0