mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-28 22:24:34 +01:00
[huffpost] Modernize
This commit is contained in:
parent
1cc887cbf0
commit
4c1ce987b0
1 changed files with 1 additions and 2 deletions
|
@ -33,8 +33,7 @@ class HuffPostIE(InfoExtractor):
|
||||||
}
|
}
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
video_id = self._match_id(url)
|
||||||
video_id = mobj.group('id')
|
|
||||||
|
|
||||||
api_url = 'http://embed.live.huffingtonpost.com/api/segments/%s.json' % video_id
|
api_url = 'http://embed.live.huffingtonpost.com/api/segments/%s.json' % video_id
|
||||||
data = self._download_json(api_url, video_id)['data']
|
data = self._download_json(api_url, video_id)['data']
|
||||||
|
|
Loading…
Reference in a new issue