Closed lengrongfu closed 1 year ago
@lengrongfu please properly describe what is not working as expected using the template I inserted.
@jdepoix Hi, Youtube translated subtitles to be downloaded? e.g.
transcript_list = YouTubeTranscriptApi.list_transcripts(video_id="8iYCp3ZwoU8")
print(transcript_list)
For this video (8iYCp3ZwoU8) transcripts are available in the following languages:
(MANUALLY CREATED)
None
(GENERATED)
- en ("English (auto-generated)")[TRANSLATABLE]
(TRANSLATION LANGUAGES)
- af ("Afrikaans")
- ak ("Akan")
- sq ("Albanian")
- am ("Amharic")
but transcript = YouTubeTranscriptApi.get_transcript(video_id="8iYCp3ZwoU8", languages=['af'])
donot download.
This is correct since there is no (manually nor automatically generated) transcript in Afrikaans. There only is an automatically generated English transcript, which can be translated into Afrikaans. To do so, please have a look at the README.
I will close this now, as this seems to work as intended.
To Reproduce
Steps to reproduce the behavior:
Which Python version are you using?
Which version of youtube-transcript-api are you using?
What code / cli command are you executing?
Expected behavior
Describe what you expected to happen.
Actual behaviour
Describe what is happening instead of the Expected behavior. Add error messages if there are any.