add subtitle support
bit opened this issue · 0 comments
bit commented
youtube videos can have subtitles, if available those should be imported.
check if subtitles exist
"http://www.youtube.com/api/timedtext?hl=en&type=list&tlangs=1&v=%s&asrs=1"%youtube_id
def get_subtitles(youtube_id, language=en):
url = "http://www.youtube.com/api/timedtext?hl=en&v=%s&type=track&lang=%s&name=CC&kind"%(youtube_id, language)