Browse Source

[twitch:stream] Fix channel_id in different case (Closes #6263)

totalwebcasting
Sergey M․ 10 years ago
parent
commit
1793d71db6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/twitch.py

+ 2
- 0
youtube_dl/extractor/twitch.py View File

@ -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')


Loading…
Cancel
Save