AttributeError | Python 3.7.3: /usr/bin/python3 Sun Jan 17 15:13:25 2021 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib/cgi-bin/tvh_epg.py in <module>() |
1474 cgitb.enable(display=0, logdir=DOCROOT + '/python_errors', format='html') |
1475 |
=> 1476 web_interface() |
1477 |
1478 else: |
web_interface = <function web_interface> |
/usr/lib/cgi-bin/tvh_epg.py in web_interface() |
1418 elif CAST_SUPPORT and p_page == 'chromecast': |
1419 html_page_header() |
=> 1420 page_chromecast(p_uri, p_cast_device) |
1421 html_page_footer() |
1422 elif p_page == 'm3u': |
global page_chromecast = <function page_chromecast>, p_uri = '/stream/channel/d5c3e4829ea3cfbf3aea59d02d55cf19', p_cast_device = '' |
/usr/lib/cgi-bin/tvh_epg.py in page_chromecast(p_uri='/stream/channel/d5c3e4829ea3cfbf3aea59d02d55cf19', p_cast_device='') |
597 for cast_dev in chromecasts: |
598 print('<option value="%s">%s</option>' % \ |
=> 599 (cast_dev.device.friendly_name, |
=> 600 cast_dev.device.friendly_name, |
=> 601 )) |
cast_dev = [Chromecast(None, port=8009, device=DeviceStatus(...8e13-00a0-9d4e-c18d21dbf90d'), cast_type='cast'))], cast_dev.device undefined |
AttributeError: 'list' object has no attribute 'device'
args =
("'list' object has no attribute 'device'",)
with_traceback =
<built-in method with_traceback of AttributeError object>