diff options
Diffstat (limited to 'youtube_dl/extractor/cbsnews.py')
| -rw-r--r-- | youtube_dl/extractor/cbsnews.py | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/youtube_dl/extractor/cbsnews.py b/youtube_dl/extractor/cbsnews.py index d211ec23b..480435e26 100644 --- a/youtube_dl/extractor/cbsnews.py +++ b/youtube_dl/extractor/cbsnews.py @@ -35,6 +35,11 @@ class CBSNewsIE(InfoExtractor):                  'title': 'Fort Hood shooting: Army downplays mental illness as cause of attack',                  'thumbnail': 're:^https?://.*\.jpg$',                  'duration': 205, +                'subtitles': { +                    'en': [{ +                        'ext': 'ttml', +                    }], +                },              },              'params': {                  # rtmp download @@ -85,10 +90,18 @@ class CBSNewsIE(InfoExtractor):                  fmt['ext'] = 'mp4'              formats.append(fmt) +        subtitles = {} +        if 'mpxRefId' in video_info: +            subtitles['en'] = [{ +                'ext': 'ttml', +                'url': 'http://www.cbsnews.com/videos/captions/%s.adb_xml' % video_info['mpxRefId'], +            }] +          return {              'id': video_id,              'title': title,              'thumbnail': thumbnail,              'duration': duration,              'formats': formats, +            'subtitles': subtitles,          } | 
