1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-24 06:35:51 +01:00

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

This commit is contained in:
Sergey M․ 2020-02-01 00:32:25 +07:00
parent d95a1cc98e
commit 00de61a98f
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

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)