-
Notifications
You must be signed in to change notification settings - Fork 36
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
Don't forcibly send timeline updates every second #137
Comments
Yep, this is on my list for 0.8.0. Thank you! |
Try this: script.plexmod.zip The DEBUG entries are still every second, but it won't send the same event every second, only if the playstate changes, or every 10 seconds. |
Thanks for this, so quick! Just tried it out, it appears to be reporting back to the PMS every 20 seconds, not 10 going off the console logs. |
Here's a more concise implementation: script.plexmod.zip It uses the same logic, but relies on the serverTimeline for the check whether to send or not (expiry for a server timeline is 15 seconds). Every major state change is reported immediately, of course. Edit: Whoops, this probably broke music and it threw an error. Reuploaded zip (13:23 CEST) |
Yes, this seems to work well from what I can see in the logs! EDIT: only tested old zip EDIT2: new zip also seems to work as well although I don't have any music to test, just video. |
…n't sent one for 15 seconds; fixes #137
…n't sent one for 15 seconds; fixes #137
Description: UpdateNowPlaying forces PMS updates every 1 second during playback events. Important events are already reported due to prior work done so updating every 1s is no longer required.
Potentially affected code: https://github.com/pannal/plex-for-kodi/blob/develop_kodi21/lib/player.py#L762
Details:
(player: paused)
also reports back every second as well.Resolution: change the way PM4K reports back playback status.
The text was updated successfully, but these errors were encountered: