So i've spent quite a few hours figuring this all out and i'm still stuck with the same issues.
Below is a few snippets of errors that appear. I have tried with both digest authentication on and off
INFO:root:192.168.1.92 - - [2021-11-26 19:27:23] "GET /lineup.json HTTP/1.1" 500 426 0.025368
ERROR:root:An error occured: %sJSONDecodeError('Expecting value: line 1 column 1 (char 0)')
ERROR:tvhProxy:Exception on /lineup.json [GET]
Traceback (most recent call last):
File "/home/hts/tvhProxy/.venv/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/home/hts/tvhProxy/.venv/lib/python3.9/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/hts/tvhProxy/.venv/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/home/hts/tvhProxy/.venv/lib/python3.9/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/hts/tvhProxy/tvhProxy.py", line 82, in lineup
for c in _get_channels():
TypeError: 'NoneType' object is not iterable
ERROR:tvhProxy:Exception on /epg.xml [GET]
Traceback (most recent call last):
File "/home/hts/tvhProxy/.venv/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/home/hts/tvhProxy/.venv/lib/python3.9/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/hts/tvhProxy/.venv/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/home/hts/tvhProxy/.venv/lib/python3.9/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/hts/tvhProxy/tvhProxy.py", line 108, in epg
return _get_xmltv(), {'Content-Type': 'application/xml'}
File "/home/hts/tvhProxy/tvhProxy.py", line 168, in _get_xmltv
ElementTree.fromstring(requests.get(url, auth=HTTPDigestAuth(config['tvhUser'], config['tvhPassword'])).content))
File "/usr/lib/python3.9/xml/etree/ElementTree.py", line 1347, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: syntax error: line 1, column 49
Not sure on what else I can do to solve the issue.