Sergey M․
9 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
8 additions and
2 deletions
-
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, |
|
|
|