SchapplM / xbmc-addon-service-watchedlist

Addon for Kodi Media Center to organize "watched"-status of media.
http://kodi.wiki/view/Add-on:WatchedList
GNU General Public License v3.0
32 stars 13 forks source link

waiting time too long if periodic update starts during playback #35

Open malchmalch opened 5 years ago

malchmalch commented 5 years ago

This was also posted over in the Kodi forum...

        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 :-)

SchapplM commented 5 years ago

This seems to be an error introduced on the conversion from a hacky sleep-implemention to the monitor method back in April 2016. It should be fixed with 8420e90e2.