mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 16:26:40 +00:00
[bambuser] Modernize
This commit is contained in:
parent
6621ca39a3
commit
bda44f31a1
1 changed files with 5 additions and 6 deletions
|
@ -35,12 +35,11 @@ class BambuserIE(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')
|
|
||||||
info_url = ('http://player-c.api.bambuser.com/getVideo.json?'
|
info = self._download_json(
|
||||||
'&api_key=%s&vid=%s' % (self._API_KEY, video_id))
|
'http://player-c.api.bambuser.com/getVideo.json?api_key=%s&vid=%s'
|
||||||
info_json = self._download_webpage(info_url, video_id)
|
% (self._API_KEY, video_id), video_id)['result']
|
||||||
info = json.loads(info_json)['result']
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
|
Loading…
Reference in a new issue