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

Failure in downloading particular video #28

Closed
kinnairdclan opened this issue Jan 13, 2023 · 1 comment
Closed

Failure in downloading particular video #28

kinnairdclan opened this issue Jan 13, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@kinnairdclan
Copy link
Contributor

Video: https://www.youtube.com/watch?v=_ZI_FdTVXpU -- frontend reports failure to query metadata

Error:
INFO: 172.20.0.5:48704 - "GET /meta/_ZI_FdTVXpU HTTP/1.0" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 377, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 212, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in call
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in call
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in call
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 656, in call
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
response = await func(request)
File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 226, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 159, in run_endpoint_function
return await dependant.call(**values)
File "/home/user/app/./server.py", line 55, in api_meta
meta = query_meta(video_id)
File "/home/user/app/./util/meta.py", line 51, in query_meta
"likes": data["like_count"],
KeyError: 'like_count'

Please redirect me if this is a yt-dlp issue, thank you!

@xcodian xcodian added the bug Something isn't working label Jan 14, 2023
@xcodian xcodian self-assigned this Jan 14, 2023
@xcodian
Copy link
Owner

xcodian commented Jan 14, 2023

Thank you for the issue, and sorry for the neglect of the project.
Should be all fixed now.

NOTE: For some videos I've discovered another bug which does not allow its highest quality to be downloaded. Weirdly, Google's servers do not return data sometimes? This does not relate to the Quick download section, but is exclusive to merging. Will investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants