Kakulukian / youtube-transcript

Fetch transcript from a youtube video
240 stars 51 forks source link

Cannot retrieve auto-generated english transcript. #18

Closed Finalet closed 4 months ago

Finalet commented 4 months ago

Video in question (https://www.youtube.com/watch?v=XcFOOfqfx3s) has two captions: Chinese and English (auto-generated)

No matter what config I pass, the package always return Chinese captions

const transcript = await YoutubeTranscript.fetchTranscript(youtubeUrl, { country: "US", lang: "en" });

Output:

0: {text: '嗨', duration: 710, offset: 0}
1: {text: '想必大家都对“巴格达电池”很好奇吧', duration: 2820, offset: 710}
...

What could be the issue here?

Kakulukian commented 4 months ago

Fixed with 1.2.1