[twitch:stream] Lowercase channel id for stream request (closes #23917)
authorSergey M․ <dstftw@gmail.com>
Fri, 31 Jan 2020 17:32:25 +0000 (00:32 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 31 Jan 2020 17:32:25 +0000 (00:32 +0700)
youtube_dl/extractor/twitch.py

index a8c2502af8132834a34b8ef9c8ade935dd432604..0db2dca41c7e7e914c66956987d2f921b81b1791 100644 (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)