Browse Source

[twitch:stream] Lowercase channel id for stream request (closes #23917)

master
Sergey M․ 5 years ago
parent
commit
00de61a98f
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/twitch.py

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

@ -575,8 +575,8 @@ class TwitchStreamIE(TwitchBaseIE):
channel_id = self._match_id(url)
stream = self._call_api(
'kraken/streams/%s?stream_type=all' % channel_id, channel_id,
'Downloading stream JSON').get('stream')
'kraken/streams/%s?stream_type=all' % channel_id.lower(),
channel_id, 'Downloading stream JSON').get('stream')
if not stream:
raise ExtractorError('%s is offline' % channel_id, expected=True)


Loading…
Cancel
Save