projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4211e19
)
[twitch:stream] Fix channel_id in different case (Closes #6263)
author
Sergey M․
<dstftw@gmail.com>
Sat, 18 Jul 2015 00:18:03 +0000
(06:18 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 18 Jul 2015 00:18:03 +0000
(06:18 +0600)
youtube_dl/extractor/twitch.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitch.py
b/youtube_dl/extractor/twitch.py
index 92b6dc1b820eef8e6a7a0b42bd48bfc5d2422e38..ab557a1a57f4936b7f93d46269607127324740bf 100644
(file)
--- a/
youtube_dl/extractor/twitch.py
+++ b/
youtube_dl/extractor/twitch.py
@@
-346,6
+346,8
@@
class TwitchStreamIE(TwitchBaseIE):
'http://www.twitch.tv/%s/profile' % channel_id,
'TwitchProfile', channel_id)
+ channel_id = stream.get('channel', {}).get('name') or channel_id.lower()
+
access_token = self._download_json(
'%s/api/channels/%s/access_token' % (self._API_BASE, channel_id), channel_id,
'Downloading channel access token')