Closed provhatrahman closed 3 months ago
Hi @provhatrahman, there's this bug in YouTube where sometimes an empty transcript is returned when you're trying to translate a english subtitles to english. You can work around this by not calling translated_transcript = auto_generated_transcript.translate('en')
when input_language_code == 'en'
.
I'll close this now, as there is not much else to do here.
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 11.7
Which version of youtube-transcript-api are you using?
youtube-transcript-api 0.6.2
Expected behavior
Describe what you expected to happen.
I expected to receive the english transcript in a list format as such:
Actual behaviour
Instead I received the following in the output module:
i.e. it returns an empty list, despite running the same code previously returning the auto sub'd transcript