aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-06-11 05:57:27 +0700
committerSergey M․ <dstftw@gmail.com>2016-06-11 05:57:27 +0700
commitfe458b65965e5a847a24d00138b723ce67b274e2 (patch)
treefe92258e24ac29703657c217bf307814fdc5d565 /youtube_dl
parent21ac1a8ac3f2a3c301ad8c08730166a8fd82c287 (diff)
[limelight] Extract ttml subtitles (Closes #9739)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/limelight.py10
1 files changed, 8 insertions, 2 deletions
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,