Closed renine94 closed 6 months ago
I'm getting the same result
Hi, thanks for reporting!
It seems that YouTube has made some changes which caused the translationLanguages
key to sometimes be missing from the captions json. I just published v0.6.2, which initializes translation_languages
with an empty list in case that happens. So upgrading to v0.6.2 should fix this error!
DO NOT DELETE THIS! Please take the time to fill this out properly. I am not able to help you if I do not know what you are executing and what error messages you are getting. If you are having problems with a specific video make sure to include the video id.
To Reproduce
Steps to reproduce the behavior:
What code / cli command are you executing?
For example: I am running
Which Python version are you using?
Python 3.11.3
Which version of youtube-transcript-api are you using?
youtube-transcript-api 0.6.1
Expected behavior
Describe what you expected to happen.
For example: I expected to receive the transcript
Actual behaviour
Describe what is happening instead of the Expected behavior. Add error messages if there are any.
For example: Instead I received the following error message: KeyError