Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backups
youtube-dl
Commits
00de61a9
Unverified
Commit
00de61a9
authored
Feb 01, 2020
by
Sergey M․
Browse files
[twitch:stream] Lowercase channel id for stream request (closes #23917)
parent
d95a1cc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
youtube_dl/extractor/twitch.py
youtube_dl/extractor/twitch.py
+2
-2
No files found.
youtube_dl/extractor/twitch.py
View file @
00de61a9
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment