Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[youtube] --dump-json "subtitles" key = null for video with subtitles #4602
Comments
|
Subtitles info is not extracted unless you request it, you'll need to use $ youtube-dl 'iAy0tG56ZYg' --all-subs --dump-json | jq '.subtitles | keys'
[
"en",
"ja",
"zh-TW"
] |
|
@jaimeMF Is there any better way to accomplish the same goal? BTW: I've tried |
|
In the next version, |
|
I believe this issue to be fixed in youtube-dl version 2015.02.24 and newer. See our FAQ if you need help updating. |
I'm writing a program to parse youtube video supported format and subtitles, however the
subtitleskey of JSON output ofyoutube-dl --dump-json https://www.youtube.com/watch?v=iAy0tG56ZYgisnullwhileyoutube-dl --list-subs https://www.youtube.com/watch?v=iAy0tG56ZYgdeclares that the video has zh-TW,en,ja subtitles:I wonder that if it's youtube-dl's bug for not listing the available subtitles in
subtitleskey, or if it isn't, how should I parse a video's available subtitles?Tested using 2014.12.16.2 version of youtube-dl