Closed Botato300 closed 8 months ago
Hi @Botato300, when I open the URL https://youtu.be/Tj_5dU0gjk0, the video doesn't allow me to enable subtitles. So it seems to me that the error message is correct in saying that subtitles are disabled for this video. I will close this now, but let me know if that is not the case for you.
Hi!
But look at the photo! If it has subtitles, I can see them.
Wow, that is strange! For me it doesn't show subtitles:
I've never encountered this before. Maybe the subtitles are enabled based on your location? Are you executing the code from you local machine or from some cloud service?
Yes, it is strange. I'm running the code locally, on my windows 10 PC. I tried entering the video from incognito and no subtitles appeared! I think it shows the subtitles by account, instead of by location?
@Botato300 huh, that's interesting. Are you the uploader by the video of any chance? I don't know any ruling that YouTube can apply to limit transcripts to certain accounts, but that might very well be possible. However, you should be able to work around this using Cookies.
No, I did not upload the video. I'll try the cookies, thanks!
To Reproduce
Steps to reproduce the behavior: Simply execute the code.
Video link:
https://youtu.be/Tj_5dU0gjk0![image](https://github.com/jdepoix/youtube-transcript-api/assets/51982229/3da82ae9-d0e5-431a-865b-83acd8325de5)
What code / cli command are you executing?
For example:
Which Python version are you using?
Python 3.11.4
Which version of youtube-transcript-api are you using?
youtube-transcript-api 0.6.1
Expected behavior
Describe what you expected to happen.
I was hoping to receive the transcripts, as they are available in the video.
Actual behaviour
Describe what is happening instead of the Expected behavior. Add error messages if there are any.
Instead I received the following error message: