aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/twitch.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-03-26 02:19:24 +0600
committerSergey M․ <dstftw@gmail.com>2016-03-26 02:19:24 +0600
commit6e6bc8dae577c29c072ffc5c25078b5668435435 (patch)
tree600a978f35617628856094486422e13c78d67ee7 /youtube_dl/extractor/twitch.py
parent15707c7e024f1f29e7abd8ddaa362196ef2d4af6 (diff)
downloadyoutube-dl-6e6bc8dae577c29c072ffc5c25078b5668435435.tar.xz
Use urlencode_postdata across the codebase
Diffstat (limited to 'youtube_dl/extractor/twitch.py')
-rw-r--r--youtube_dl/extractor/twitch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index c92dcc7b9..36ee1adff 100644
--- a/youtube_dl/extractor/twitch.py
+++ b/youtube_dl/extractor/twitch.py
@@ -20,6 +20,7 @@ from ..utils import (
parse_duration,
parse_iso8601,
sanitized_Request,
+ urlencode_postdata,
)
@@ -81,7 +82,7 @@ class TwitchBaseIE(InfoExtractor):
post_url = compat_urlparse.urljoin(redirect_url, post_url)
request = sanitized_Request(
- post_url, compat_urllib_parse_urlencode(login_form).encode('utf-8'))
+ post_url, urlencode_postdata(login_form))
request.add_header('Referer', redirect_url)
response = self._download_webpage(
request, None, 'Logging in as %s' % username)