Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to download subtitles for some YouTube videos. #382

Closed
chalet16 opened this issue Jul 25, 2012 · 1 comment
Closed

Unable to download subtitles for some YouTube videos. #382

chalet16 opened this issue Jul 25, 2012 · 1 comment

Comments

@chalet16
Copy link

@chalet16 chalet16 commented Jul 25, 2012

I had used youtube-dl to download hundreds of videos with subtitles. I found one video that a subtitle is available on YouTube but youtube-dl is unable to fetch it.

This video: http://www.youtube.com/watch?v=5hO3MrzPa0A

I found that swf player on youtube download subtitle from this URL (which is work).

http://www.youtube.com/api/timedtext?lang=en&name=English&v=5hO3MrzPa0A

But youtube-dl is unable to download it. Later, I found that youtube-dl download subtitle from different URL.
http://video.google.com/timedtext?hl=en&lang=%s&v=%s

I found only about 1% of clip I had downloaded have this problem, but I would very appreciate if this issue would have been resolved.

Thank you :)

@FiloSottile
Copy link
Collaborator

@FiloSottile FiloSottile commented Jul 31, 2012

The new URL seems needed only when the closed captions track has a name, but if the name is left blank it seems to support also the "normal" tracks.
So, switched all the system to the new name.

The regex is not exactly robust for parsing the XML, but it should work.

I don't have so many test cases, please let me know if something breaks.

It would be helpful doing a batch of youtube-dl --write-srt --skip-download and reporting the results.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.