I have a script which is giving me a notification when I switch to the movie poster in Kodi.
HOWEVER, the notification is stuck on the screen and doesn't disappear after 5 seconds as it should.
I simply can't figure out how to break out of the loop.
It should reappear once I switch to a movie which has a different sound mode/or refresh rate, etc. ...
I'd really appreciate if someone can take a look - what is likely a simple solution. Just not for me....
Thanks a lot!
Code: Alles auswählen
if __name__ == '__main__':
monitor = xbmc.Monitor()
while not monitor.abortRequested():
if monitor.waitForAbort(.5):
break
for root, dirs, files in os.walk("/storage/emulated/0/DCIM/"):
for x in dirs:
if xbmc.getInfoLabel('ListItem.Title') in dirs:
xbmc.executebuiltin( 'Notification(Status,Refresh rate: 23Hz)' )
break
break