[hitbox:live] Extract formats before metadata
This commit is contained in:
parent
008bee0f50
commit
14f41bc2fb
1 changed files with 5 additions and 5 deletions
|
@ -150,10 +150,6 @@ class HitboxLiveIE(HitboxIE):
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
metadata = self._extract_metadata(
|
|
||||||
'https://www.hitbox.tv/api/media/live',
|
|
||||||
video_id)
|
|
||||||
|
|
||||||
player_config = self._download_json(
|
player_config = self._download_json(
|
||||||
'https://www.hitbox.tv/api/player/config/live/%s' % video_id,
|
'https://www.hitbox.tv/api/player/config/live/%s' % video_id,
|
||||||
video_id)
|
video_id)
|
||||||
|
@ -194,9 +190,13 @@ class HitboxLiveIE(HitboxIE):
|
||||||
'page_url': url,
|
'page_url': url,
|
||||||
'player_url': 'http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf',
|
'player_url': 'http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf',
|
||||||
})
|
})
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
metadata = self._extract_metadata(
|
||||||
|
'https://www.hitbox.tv/api/media/live',
|
||||||
|
video_id)
|
||||||
metadata['formats'] = formats
|
metadata['formats'] = formats
|
||||||
metadata['is_live'] = True
|
metadata['is_live'] = True
|
||||||
metadata['title'] = self._live_title(metadata.get('title'))
|
metadata['title'] = self._live_title(metadata.get('title'))
|
||||||
|
|
||||||
return metadata
|
return metadata
|
||||||
|
|
Loading…
Reference in a new issue