Starting a script on certain event?
#1
Question 
Hi everyone,

is it possible to let XBMC start a certain script if some event occurs (next song in playlist, playlist ended, etc)? Or can a python script run in background and check for conditions from time to time?

Greetings

koprom
Reply
#2
you could use the MyPlayer() Class from XBMC Lyrics to do things on a player event and yes scripts can run in the background so to speak, just don't give it a gui.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
Okay thanks for the advice nuka1195!

Greetings

koprom
Reply
#4
Also checkout these scripts: ResumeX, and Smart Playlist Editor, and these threads:
http://forum.xbmc.org/showthread.php?tid=15288
http://forum.xbmc.org/showthread.php?tid=23489
http://forum.xbmc.org/showthread.php?tid=24906
http://forum.xbmc.org/showthread.php?tid=10040
http://forum.xbmc.org/showthread.php?tid=16481

Also checkout the wiki:
http://www.xboxmediacenter.com/wiki/inde...erHTTP-API
http://www.xboxmediacenter.com/wiki/inde...ory:Python
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply

Logout Mark Read Team Forum Stats Members Help
Starting a script on certain event?0