aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/huffpost.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-10-13 10:08:59 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-10-13 10:08:59 +0200
commit4c1ce987b03dc9cde1b9f06db117f4f12c1dd6a4 (patch)
treede20fd14b8382706d4663f5921ee318dfe301a28 /youtube_dl/extractor/huffpost.py
parent1cc887cbf0371a3de2154bc2b34546d1040d01a8 (diff)
[huffpost] Modernize
Diffstat (limited to 'youtube_dl/extractor/huffpost.py')
-rw-r--r--youtube_dl/extractor/huffpost.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/huffpost.py b/youtube_dl/extractor/huffpost.py
index 94e7cf790..4ccf6b9b8 100644
--- 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']