Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API example dont run #450

Open
GrLinkDn opened this issue Jul 25, 2024 · 0 comments
Open

API example dont run #450

GrLinkDn opened this issue Jul 25, 2024 · 0 comments

Comments

@GrLinkDn
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant