projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc887c
)
[huffpost] Modernize
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 13 Oct 2014 08:08:59 +0000
(10:08 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 13 Oct 2014 08:08:59 +0000
(10:08 +0200)
youtube_dl/extractor/huffpost.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/huffpost.py
b/youtube_dl/extractor/huffpost.py
index 94e7cf79008aa0b2426f70a26ba70218f916d731..4ccf6b9b8a82c3ef28c1d9d04dcc6f26ce2a8f8d 100644
(file)
--- a/
youtube_dl/extractor/huffpost.py
+++ b/
youtube_dl/extractor/huffpost.py
@@
-33,8
+33,7
@@
class HuffPostIE(InfoExtractor):
}
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- video_id = mobj.group('id')
+ video_id = self._match_id(url)
api_url = 'http://embed.live.huffingtonpost.com/api/segments/%s.json' % video_id
data = self._download_json(api_url, video_id)['data']