-
Notifications
You must be signed in to change notification settings - Fork 7
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
crash when viewing video (may be due to content warning / age restriction?)
#1213
Comments
Stack trace from local Via instance:
The JSON response which was parsed into the |
KeyError
crash when viewing videoKeyError
crash when viewing video (may be due to content warning?)
If you try to view this video on docdrop.org, which uses the same unofficial APIs to get the transcript, you get an error about the transcript not being available: https://docdrop.org/video/oIWqTIFRlYU/. I get the same result using the youtube-transcript-api Python library directly - https://github.com/jdepoix/youtube-transcript-api. On that basis, I think a minimal acceptable fix here would be to return a nicer error message. If the problem is confirmed to be due to a content warning, then it would be helpful if the error message mentioned that. |
Likely related upstream issue: jdepoix/youtube-transcript-api#111 The text displayed to the user on YouTube mentions a content warning rather than an age restriction, but I note that the JSON API response linked above indicates that YouTube treats this kind of "upsetting content warning" like age-restricted content. |
KeyError
crash when viewing video (may be due to content warning?)KeyError
crash when viewing video (may be due to content warning / age restriction?)
Via doesn't use https://github.com/jdepoix/youtube-transcript-api/ anymore so this will be a bug in our own code |
Attempting to view https://www.youtube.com/watch?v=oIWqTIFRlYU in Via (https://via.hypothes.is/https://www.youtube.com/watch?v=oIWqTIFRlYU) results in a 5xx error from our backend: .
Error details from the response:
This video does have an auto-generated transcript available on YouTube itself. The video is preceded by a content warning (it is about the Israel-Palestine conflict), which might be related.
The text was updated successfully, but these errors were encountered: