lgtv scan not working
See original GitHub issueUpon running the lgtv scan
command I receive an unrecognisable output: (personal details are #'ed)
Unknown device b’HTTP/1.1 200 OK\r\nHOST: ###.###.###.###:1900\r\nEXT:\r\nCACHE-CONTROL: max-age=100\r\nLOCATION: http://###.###.###.###:80/description.xml\r\nSERVER: Hue/1.0 UPnP/1.0 IpBridge/1.45.0\r\nhue-bridgeid: 001788FFFEAF4BEA\r\nST: upnp:rootdevice\r\nUSN: uuid:########-####-####-####-############::upnp:rootdevice\r\n\r\n’ (‘###.###.###.###’, 1900) Traceback (most recent call last): File “/Users/keets/.local/bin/lgtv”, line 8, in <module> sys.exit(main()) File “/Users/keets/.local/pipx/venvs/lgtv/lib/python3.9/site-packages/LGTV/init.py”, line 111, in main results = LGTVScan() File “/Users/keets/.local/pipx/venvs/lgtv/lib/python3.9/site-packages/LGTV/scan.py”, line 28, in LGTVScan uuid = re.findall(r’uuid:(.*?):', line.decode(‘utf-8’))[0] IndexError: list index out of range
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Interesting, could you install a upnp browser/analyser and see what you find, looks like a rogue dnla device
I completely uninstalled and reinstalled the latest commit and that seems to have fixed the issue. Thank You!