aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-04-22 21:03:56 +0600
committerSergey M․ <dstftw@gmail.com>2015-04-22 21:03:56 +0600
commit008bee0f50ea27e4fde4ba4d0cdb9043783299c0 (patch)
treedbef494c870e149f661c7bc42a08e8484c700644 /youtube_dl
parent29492f33329c6d6fd4be7f2da7dcaff14bc531ba (diff)
[hitbox] Extract formats before metadata
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/hitbox.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/hitbox.py b/youtube_dl/extractor/hitbox.py
index 6701fa48d..c51bc7ca4 100644
--- a/youtube_dl/extractor/hitbox.py
+++ b/youtube_dl/extractor/hitbox.py
@@ -88,10 +88,6 @@ class HitboxIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
- metadata = self._extract_metadata(
- 'https://www.hitbox.tv/api/media/video',
- video_id)
-
player_config = self._download_json(
'https://www.hitbox.tv/api/player/config/video/%s' % video_id,
video_id)
@@ -123,6 +119,9 @@ class HitboxIE(InfoExtractor):
})
self._sort_formats(formats)
+ metadata = self._extract_metadata(
+ 'https://www.hitbox.tv/api/media/video',
+ video_id)
metadata['formats'] = formats
return metadata