]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[dfb] Extract formats
authorSergey M․ <dstftw@gmail.com>
Tue, 14 Jul 2015 18:01:41 +0000 (00:01 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 14 Jul 2015 18:01:41 +0000 (00:01 +0600)
youtube_dl/extractor/dfb.py

index f1df9b9a0d52f126ab9a8a0dfed3e75bd63a3a32..263532cc6e66a94c79670caa5e1600444ce909da 100644 (file)
@@ -37,13 +37,13 @@ class DFBIE(InfoExtractor):
             self._proto_relative_url(video_info.find('url').text.strip()), display_id)
         token_el = f4m_info.find('token')
         manifest_url = token_el.attrib['url'] + '?' + 'hdnea=' + token_el.attrib['auth'] + '&hdcore=3.2.0'
+        formats = self._extract_f4m_formats(manifest_url, display_id)
 
         return {
             'id': video_id,
             'display_id': display_id,
             'title': video_info.find('title').text,
-            'url': manifest_url,
-            'ext': 'flv',
             'thumbnail': self._og_search_thumbnail(webpage),
             'upload_date': unified_strdate(video_info.find('time_date').text),
+            'formats': formats,
         }