X-Git-Url: https://git.rapsys.eu/youtubedl/blobdiff_plain/6d835d4d6903cf5e18ad01844736929e06d16004..fe979149c83b5a935f7d28baf75848a9137316fd:/youtube_dl/extractor/sharesix.py diff --git a/youtube_dl/extractor/sharesix.py b/youtube_dl/extractor/sharesix.py index 7531e83..9cce5ce 100644 --- a/youtube_dl/extractor/sharesix.py +++ b/youtube_dl/extractor/sharesix.py @@ -5,9 +5,9 @@ import re from .common import InfoExtractor from ..utils import ( - compat_urllib_parse, - compat_urllib_request, parse_duration, + sanitized_Request, + urlencode_postdata, ) @@ -47,8 +47,8 @@ class ShareSixIE(InfoExtractor): fields = { 'method_free': 'Free' } - post = compat_urllib_parse.urlencode(fields) - req = compat_urllib_request.Request(url, post) + post = urlencode_postdata(fields) + req = sanitized_Request(url, post) req.add_header('Content-type', 'application/x-www-form-urlencoded') webpage = self._download_webpage(req, video_id,