Closed luskaner closed 9 months ago
Oh, let's mark this as draft, as I found that then it no longer works when calling get_audio_output
directly
Now it works, since the direct requests will still use the validation
key (and subscriptions as a fallback for subscription_validation
key). If this is the right direction to fix it I can make the tests and it's ready to merge :)
One more request: Please bump the version in setup.py. I'll merge your PR, and get this published soon :)
Hello:
This PR fixes the subscription to
get_audio_output
ofMediaControl
.In the original code, these are always the values whenever the callback gets called:
status
:False
payload
:Unknown Error
This is because of the
standard_validation
checks for the keyerrorText
that is never present as the TV returns a response like (sosubscribed
is checked instead) :PS: While this was tested on the latest WebOS 2023, this should affect any WebOS version, since I checked the api version is still 1 for the audio endpoint
Thanks for the great project ;)