aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/twitch.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-17 18:43:12 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-17 18:43:12 +0600
commit350c9481336ac981eadc982b67ccdbc7e28ca0e3 (patch)
tree33c08b2b62b2c92dcf0e28a9f173975bbba15dab /youtube_dl/extractor/twitch.py
parente5e9966199c00a6b89f1f25e1c7b85effb032537 (diff)
[twitch:vod] Formatting
Diffstat (limited to 'youtube_dl/extractor/twitch.py')
-rw-r--r--youtube_dl/extractor/twitch.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index 21ea836ea..3ec08b674 100644
--- 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(
- '%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(
- '%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'],
})),
- item_id, 'mp4')
+ item_id, 'mp4')
self._prefer_source(formats)
info['formats'] = formats