youtube-transcript-api icon indicating copy to clipboard operation
youtube-transcript-api copied to clipboard

Transcript not available in the selected language (en).

Open pascalandy opened this issue 2 weeks ago • 2 comments

To Reproduce

Steps to reproduce the behavior:

What code / cli command are you executing?

For example: I am running

yt --transcript https://www.youtube.com/watch\?v\=_0fy4vvUgiw > transcript.txt

Which Python version are you using?

Python 3.11.9

Which version of youtube-transcript-api are you using?

not sure it's via fabric-ai. But most video gets the captions

Expected behavior

Describe what you expected to happen.

I expected to receive the english transcript. It works for most videos

Actual behaviour

I see on youtube that captions is disabled. Maybe it's why.

Instead I received the following error message:

"Transcript not available in the selected language (en). (\nCould not retrieve a transcript for the video https://www.youtube.com/watch?v=UdJBqCI4dpU! This is most likely caused by:\n\nSubtitles are disabled for this video\n\nIf you are sure that the described cause is not responsible for this error and that a transcript should be retrievable, please create an issue at https://github.com/jdepoix/youtube-transcript-api/issues. Please add which version of youtube_transcript_api you are using and provide the information needed to replicate the error. Also make sure that there are no open issues which already describe your problem!)"

pascalandy avatar Jun 26 '24 21:06 pascalandy