Simple .NET console application which downloads subtitles from youtube using a youtube VideoID or a youtube playlist url.
The program downloads a subtitle from youtube. Converts the timedtext xml to Subrip srt format and writes this to disk. The filename is this title of the video. Is also does it for a playlist, conveniently creating a list of subtitles.
Example usage: Youtube2SRT -l:en "https://www.youtube.com/watch?v=yLL6Tc02NHo&list=PLEXBGg5OB0B_VVQXo5IAKXGIxqsHIpBcq&index=2&t=0s"
Watch the quotes around the url they are needed most of the time!
This program is not well tested so use it at your own risk. It works for me.
I use 4k Video Download to occasinaly download chinese dramas. Up to a couple of weeks (time of writing this is 8th of august 2020) it also downloaded the corresponding subtitles. Something changed on youtube and it no longer works. the people at 4k Video Download are aware of this, but up to now there is still no fix from them. Another program Google2SRT which I sometimes use to download subtitles still works, so I looked at it and googled for some info how youtube worked. It seemd simple so I wrote this program to automated the download of subtitles from playlists to saved me some time :-)
Newtonsoft.Json
RestSharp
SubtitlesParser
The code is copyrighted 2019 by Yvo Nelemans, and licensed under the MIT license. Specific parts of the code are written by others and are copyrighted by their respective holders.
You can contact me (Yvo Nelemans) at yvo @ nelemans.net