aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-10 21:49:39 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-10 21:49:39 +0600
commita0aab26a414e8424e852a361c1822739f6bc936c (patch)
treeb093fd1c00e88ec6eb84e2d3f91b6ceb25e8f420 /youtube_dl/extractor
parent27713812a093ddfb329cd9cead878f3d0bf629cf (diff)
[twitch] Use `_form_hidden_inputs` when logging in
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/twitch.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index 49535cd80..af2b798fb 100644
--- a/youtube_dl/extractor/twitch.py
+++ b/youtube_dl/extractor/twitch.py
@@ -59,9 +59,7 @@ class TwitchBaseIE(InfoExtractor):
login_page = self._download_webpage(
self._LOGIN_URL, None, 'Downloading login page')
- login_form = dict(re.findall(
- r'<input\s+type="hidden"\s+name="([^"]+)"\s+(?:id="[^"]+"\s+)?value="([^"]*)"',
- login_page))
+ login_form = self._form_hidden_inputs(login_page)
login_form.update({
'login': username.encode('utf-8'),