diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-07-18 06:18:03 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-07-18 06:18:03 +0600 |
commit | 1793d71db61acc9f6cceefbc63d7de2b558b7582 (patch) | |
tree | c1297ef49cafceb819c6c5ffa7073b0adb78d27d /youtube_dl/extractor/twitch.py | |
parent | 4211e1941b39cb153505c64ab8fcb31a762674d1 (diff) |
[twitch:stream] Fix channel_id in different case (Closes #6263)
Diffstat (limited to 'youtube_dl/extractor/twitch.py')
-rw-r--r-- | youtube_dl/extractor/twitch.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py index 92b6dc1b8..ab557a1a5 100644 --- 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') |