supersaiyanmode / PyWebOSTV

Python API for controlling LG TVs (Web OS)
MIT License
271 stars 50 forks source link

MediaControl subscribe_get_audio_output and TVControl subscribe_get_current_channel do not work #96

Closed luskaner closed 12 months ago

luskaner commented 1 year ago

In the original code, these are always the values whenever the callback gets called:

This is because of the standard_validation checks for the key errorText that is never present as the TV returns a response like:

{"type":"response","id":"...","payload":{"soundOutput":"tv_speaker","subscribed":true}}

However, the validation works when called directly, so, it needs two validations

Edit: Same happens for TVControl subscribe_get_current_channel

luskaner commented 1 year ago

https://github.com/supersaiyanmode/PyWebOSTV/pull/95 Tries to solve this