Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
malchmalch opened this issue Feb 12, 2019 · 1 comment
Open

Comments

@malchmalch
Copy link

malchmalch commented Feb 12, 2019

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
Copy link
Owner

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.

@SchapplM SchapplM changed the title watchedlist patch waiting time too long if periodic update starts during playback Feb 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants