diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-22 21:05:08 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-22 21:05:08 +0600 |
commit | 14f41bc2fb01266243e763ddc80840b895acd294 (patch) | |
tree | 142ad326cc792acbb9e006c1a9262c22e30254c2 /youtube_dl/extractor | |
parent | 008bee0f50ea27e4fde4ba4d0cdb9043783299c0 (diff) |
[hitbox:live] Extract formats before metadata
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/hitbox.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/youtube_dl/extractor/hitbox.py b/youtube_dl/extractor/hitbox.py index c51bc7ca4..2c440898e 100644 --- a/youtube_dl/extractor/hitbox.py +++ b/youtube_dl/extractor/hitbox.py @@ -150,10 +150,6 @@ class HitboxLiveIE(HitboxIE): def _real_extract(self, 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( 'https://www.hitbox.tv/api/player/config/live/%s' % video_id, video_id) @@ -194,9 +190,13 @@ class HitboxLiveIE(HitboxIE): 'page_url': url, 'player_url': 'http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf', }) - self._sort_formats(formats) + + metadata = self._extract_metadata( + 'https://www.hitbox.tv/api/media/live', + video_id) metadata['formats'] = formats metadata['is_live'] = True metadata['title'] = self._live_title(metadata.get('title')) + return metadata |