2013-08-15, 02:31
Hello, sorry if this is slightly offtopic but I'm fracking my brains trying to figure this out.
I wrote a plugin to play background music when XBMC is idle. It periodically checks to see if anything is playing, and if not, it goes ahead and plays music. Pretty simply stuff, but PseudoTV and PseudoTV Live hate it and I can't figure out how to get around this.
It seems that my script is unable to figure out if PseudoTV is active. As a result, it thinks nothing is playing and starts playing music which forces PsuedoTV to close.
The check I make is
But when the script loops this somehow ends up not being True anymore and the script tries to play music again.
If you have any advice, it would be greatly appreciated, thank you!
I wrote a plugin to play background music when XBMC is idle. It periodically checks to see if anything is playing, and if not, it goes ahead and plays music. Pretty simply stuff, but PseudoTV and PseudoTV Live hate it and I can't figure out how to get around this.
It seems that my script is unable to figure out if PseudoTV is active. As a result, it thinks nothing is playing and starts playing music which forces PsuedoTV to close.
The check I make is
PHP Code:
if xbmcgui.Window(10000).getProperty("PseudoTVRunning") == "True":
But when the script loops this somehow ends up not being True anymore and the script tries to play music again.
If you have any advice, it would be greatly appreciated, thank you!