Skip to content

Commit

Permalink
[dailymail] fix format extraction(closes #17976)
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Oct 26, 2018
1 parent 7d9e858 commit 5e733b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions youtube_dl/extractor/dailymail.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def _real_extract(self, url):
'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']:
Expand Down

0 comments on commit 5e733b0

Please sign in to comment.