[filmon] improve extraction
[youtube-dl] / youtube_dl / extractor / sharesix.py
index 7531e8325bf88e3d89958dca1107334c41b78c6c..9cce5ceb43b71877202a77067458a39e5a810432 100644 (file)
@@ -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,