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
Position error when polling #2321
Labels
Comments
|
|
OK, this is weird. I have something useful to report here. When I run my script on a Mac, it works. If I run it on a Linux host, it has this bad behavior as reported here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
This seems to be new with the 17.2 version of tvOS...
When I poll every second in a loop, using:
I am getting 0 for position for the first minute or minute and a half (it varies) and then position is off by that amount of time - it starts counting from 0, 1, 2, ... after the first minute/minute and a half.
However, if I do this, the position value is correct:
push_updates prints once and hangs
The position 694/732 is correct in this case.
If I pause and play on the remote, it updates the position with correct values.
Error log
See below
How to reproduce the bug?
Call metadata.playing() in a loop with a delay of 1 second between, print the position.
This fails with YouTube and Computers (playing over LAN from shared library), Netflix, etc.
What is expected behavior?
When the video starts playing, position should immediately start at 1 and each second increment by 1.
Operating System
MacOS and Linux
Python
3.6
pyatv
whatever is installed when I pip3 install pyatv
Device
Apple TV OS 17.2
Additional context
This happens on all my ATVs, of various generations. I have one from previous generation, and one from the year before that exhibit the problem for sure.
The text was updated successfully, but these errors were encountered: