projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d9e858
)
[dailymail] fix format extraction(closes #17976)
author
Remita Amine
<remitamine@gmail.com>
Fri, 26 Oct 2018 04:41:57 +0000
(
05:41
+0100)
committer
Remita Amine
<remitamine@gmail.com>
Fri, 26 Oct 2018 04:41:57 +0000
(
05:41
+0100)
youtube_dl/extractor/dailymail.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/dailymail.py
b/youtube_dl/extractor/dailymail.py
index af39780353ac1e044ffb07464dfa64032ba18f0e..4f75a2a307169c91e141e8ee73d71f68fa20a66e 100644
(file)
--- a/
youtube_dl/extractor/dailymail.py
+++ b/
youtube_dl/extractor/dailymail.py
@@
-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']: