Skip to content

Commit

Permalink
[twitch:stream] Lowercase channel id for stream request (closes #23917)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and bbepis committed Feb 6, 2020
1 parent 5bb38f8 commit bf037e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ def _real_extract(self, url):
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)
Expand Down

0 comments on commit bf037e9

Please sign in to comment.