while xbmc.Player().isPlaying() and not manualstart:
if self.monitor.waitForAbort(60 * 1000):
return 1 # wait one minute until next check for active playback
if not xbmc.Player().isPlaying():
if self.monitor.waitForAbort(180 * 1000):
return 1 # wait 3 minutes so the dialogue does not pop up directly after the playback ends
monitor.waitForAbort() takes seconds (not milliseconds) as a parameter :-)
This seems to be an error introduced on the conversion from a hacky sleep-implemention to the monitor method back in April2016. It should be fixed with 8420e90e2.
This was also posted over in the Kodi forum...
monitor.waitForAbort() takes seconds (not milliseconds) as a parameter :-)