]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/sharesix.py
Imported Debian patch 2015.11.27.1-1.1
[youtubedl] / youtube_dl / extractor / sharesix.py
index 7531e8325bf88e3d89958dca1107334c41b78c6c..f1ea9bdb208c79cb59c189c5a3b17a9e1dec460a 100644 (file)
@@ -4,10 +4,10 @@ from __future__ import unicode_literals
 import re
 
 from .common import InfoExtractor
+from ..compat import compat_urllib_parse
 from ..utils import (
-    compat_urllib_parse,
-    compat_urllib_request,
     parse_duration,
+    sanitized_Request,
 )
 
 
@@ -48,7 +48,7 @@ class ShareSixIE(InfoExtractor):
             'method_free': 'Free'
         }
         post = compat_urllib_parse.urlencode(fields)
-        req = compat_urllib_request.Request(url, post)
+        req = sanitized_Request(url, post)
         req.add_header('Content-type', 'application/x-www-form-urlencoded')
 
         webpage = self._download_webpage(req, video_id,