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

KeyError: 'files' #23

Open
vp-82 opened this issue Sep 22, 2024 · 0 comments
Open

KeyError: 'files' #23

vp-82 opened this issue Sep 22, 2024 · 0 comments

Comments

@vp-82
Copy link

vp-82 commented Sep 22, 2024

This code is leading to a key error, but I don't know why:

from vimeo_downloader import Vimeo
v = Vimeo.from_video_id(video_id='1011688626')
s = v.streams

Here is the error:


KeyError Traceback (most recent call last)
Cell In[74], line 3
1 from vimeo_downloader import Vimeo
2 v = Vimeo.from_video_id(video_id='1011688626')
----> 3 s = v.streams

File ~/.../env-iter3/lib/python3.12/site-packages/vimeo_downloader/init.py:341, in Vimeo.streams(self)
339 title = None
340 dl = []
--> 341 for stream in js_url["request"]["files"]["progressive"]:
342 url = stream["url"]
343 if not requests.get(url, stream=True).ok:

KeyError: 'files'

Any idea on a solution or workaround?

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