]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[dailymail] fix format extraction(closes #17976)
authorRemita Amine <remitamine@gmail.com>
Fri, 26 Oct 2018 04:41:57 +0000 (05:41 +0100)
committerRemita Amine <remitamine@gmail.com>
Fri, 26 Oct 2018 04:41:57 +0000 (05:41 +0100)
youtube_dl/extractor/dailymail.py

index af39780353ac1e044ffb07464dfa64032ba18f0e..4f75a2a307169c91e141e8ee73d71f68fa20a66e 100644 (file)
@@ -49,6 +49,9 @@ class DailyMailIE(InfoExtractor):
             'http://www.dailymail.co.uk/api/player/%s/video-sources.json' % video_id)
 
         video_sources = self._download_json(sources_url, video_id)
+        body = video_sources.get('body')
+        if body:
+            video_sources = body
 
         formats = []
         for rendition in video_sources['renditions']: