aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/safari.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-12-11 23:59:25 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-12-12 14:28:05 +0800
commit8773f3158fb45fcadadc0b5e8e9dfd5c9915fa39 (patch)
treecf61b96e183259950c7cd0ec4381ae2666802608 /youtube_dl/extractor/safari.py
parentd63cfc3f0faa7d52900f2f1959e8ad81bcef2775 (diff)
[safari] Use postdata_urlencode (#7465)
Diffstat (limited to 'youtube_dl/extractor/safari.py')
-rw-r--r--youtube_dl/extractor/safari.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/safari.py b/youtube_dl/extractor/safari.py
index 919704261..7de7b7273 100644
--- a/youtube_dl/extractor/safari.py
+++ b/youtube_dl/extractor/safari.py
@@ -6,12 +6,12 @@ import re
from .common import InfoExtractor
from .brightcove import BrightcoveLegacyIE
-from ..compat import compat_urllib_parse
from ..utils import (
ExtractorError,
sanitized_Request,
smuggle_url,
std_headers,
+ urlencode_postdata,
)
@@ -57,7 +57,7 @@ class SafariBaseIE(InfoExtractor):
}
request = sanitized_Request(
- self._LOGIN_URL, compat_urllib_parse.urlencode(login_form), headers=headers)
+ self._LOGIN_URL, urlencode_postdata(login_form), headers=headers)
login_page = self._download_webpage(
request, None, 'Logging in as %s' % username)