From: Sergey M․ Date: Fri, 10 Jun 2016 22:57:27 +0000 (+0700) Subject: [limelight] Extract ttml subtitles (Closes #9739) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=fe458b65965e5a847a24d00138b723ce67b274e2;p=youtube-dl [limelight] Extract ttml subtitles (Closes #9739) --- diff --git a/youtube_dl/extractor/limelight.py b/youtube_dl/extractor/limelight.py index a25fb8e2c..5d2c3e256 100644 --- a/youtube_dl/extractor/limelight.py +++ b/youtube_dl/extractor/limelight.py @@ -102,9 +102,15 @@ class LimelightBaseIE(InfoExtractor): lang = caption.get('language_code') subtitles_url = caption.get('url') if lang and subtitles_url: - subtitles[lang] = [{ + subtitles.setdefault(lang, []).append({ 'url': subtitles_url, - }] + }) + closed_captions_url = properties.get('closed_captions_url') + if closed_captions_url: + subtitles.setdefault('en', []).append({ + 'url': closed_captions_url, + 'ext': 'ttml', + }) return { 'id': video_id,