hi,
i need some help (i'm not realy a pytjon/xbmc script writer)
for the modified kmlbrowser.py i'd like to have a automatic quality feedback for each stream just played. for that i need some good/bad return code for the actual player command.
it's about this code part:
Quote:def playmedia(url):
try:
pls = xbmc.playlist(0)
pls.clear()
pls.load(downloadplaylist(url))
player = xbmc.player()
player.play(pls)
except:
return none
after (which i think is the actual play command) "player.play(pls)", i'd like to query/post an url based on the return code of the player function.
something like (shelscript code):
Quote:player.play(pls)
if [ "$?" == "0" ]
then
curl http://www.onlinestreams.nl/kml.php&action=feedback&return=ok
else
curl http://www.onlinestreams.nl/kml.php&action=feedback&return=notok
fi
can anyone give me a hint, or perhaps give my some actual code please?
thanks in advance,
greetings,
arjan