ITADN

API example dont run

#450OpenGrLinkDn 创建于 2024-07-25
G
GrLinkDncommented
I use the example to understand how can i use API. When i start example py i receive this: ``` Traceback (most recent call last): File "/root/chromecast/chromecast-venv/lib/python3.11/site-packages/catt/stream_info.py", line 197, in _get_stream_url best_format = next(format_selector(info)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ StopIteration During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/root/chromecast/prova2.py", line 20, in <module> ouch(sys.argv[1]) File "/root/chromecast/prova2.py", line 15, in ouch cast.play_url(video, resolve=True, block=True) File "/root/chromecast/chromecast-venv/lib/python3.11/site-packages/catt/api.py", line 86, in play_url url = stream.video_url ^^^^^^^^^^^^^^^^ File "/root/chromecast/chromecast-venv/lib/python3.11/site-packages/catt/stream_info.py", line 111, in video_url return self._get_stream_url(self._info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/chromecast/chromecast-venv/lib/python3.11/site-packages/catt/stream_info.py", line 199, in _get_stream_url raise FormatError("No suitable format was found") catt.error.FormatError: No suitable format was found ```
0 条评论