projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e5e9966
)
[twitch:vod] Formatting
author
Sergey M․
<dstftw@gmail.com>
Sat, 17 Oct 2015 12:43:12 +0000
(18:43 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 17 Oct 2015 12:43:12 +0000
(18:43 +0600)
youtube_dl/extractor/twitch.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitch.py
b/youtube_dl/extractor/twitch.py
index 21ea836ea3e13407bab8892836032b17cb7dfd99..3ec08b67479396b35ade6150b7bc0d9ff6428df3 100644
(file)
--- a/
youtube_dl/extractor/twitch.py
+++ b/
youtube_dl/extractor/twitch.py
@@
-243,20
+243,20
@@
class TwitchVodIE(TwitchItemBaseIE):
info = self._download_info(self._ITEM_SHORTCUT, item_id)
access_token = self._download_json(
info = self._download_info(self._ITEM_SHORTCUT, item_id)
access_token = self._download_json(
- '%s/api/vods/%s/access_token' % (self._API_BASE, item_id), item_id,
- 'Downloading %s access token' % self._ITEM_TYPE)
+
'%s/api/vods/%s/access_token' % (self._API_BASE, item_id), item_id,
+
'Downloading %s access token' % self._ITEM_TYPE)
formats = self._extract_m3u8_formats(
formats = self._extract_m3u8_formats(
- '%s/vod/%s?%s' % (
- self._USHER_BASE, item_id,
- compat_urllib_parse.urlencode({
+
'%s/vod/%s?%s' % (
+
self._USHER_BASE, item_id,
+
compat_urllib_parse.urlencode({
'allow_source': 'true',
'allow_spectre': 'true',
'player': 'twitchweb',
'nauth': access_token['token'],
'nauthsig': access_token['sig'],
})),
'allow_source': 'true',
'allow_spectre': 'true',
'player': 'twitchweb',
'nauth': access_token['token'],
'nauthsig': access_token['sig'],
})),
- item_id, 'mp4')
+
item_id, 'mp4')
self._prefer_source(formats)
info['formats'] = formats
self._prefer_source(formats)
info['formats'] = formats