projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29492f3
)
[hitbox] Extract formats before metadata
author
Sergey M․
<dstftw@gmail.com>
Wed, 22 Apr 2015 15:03:56 +0000
(21:03 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 22 Apr 2015 15:03:56 +0000
(21:03 +0600)
youtube_dl/extractor/hitbox.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/hitbox.py
b/youtube_dl/extractor/hitbox.py
index 6701fa48d9878700fc6fd8746c8e36a2ed67ef2b..c51bc7ca4533f9bab6b78d4e6c927159f9f3510a 100644
(file)
--- 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