]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/sharesix.py
Tidy up cleanup rule and keep lintian happy.
[youtubedl] / youtube_dl / extractor / sharesix.py
index ac3e3adf22ad194a8af3e833ae4d8acf7484e8b4..9cce5ceb43b71877202a77067458a39e5a810432 100644 (file)
@@ -4,12 +4,10 @@ from __future__ import unicode_literals
 import re
 
 from .common import InfoExtractor
 import re
 
 from .common import InfoExtractor
-from ..compat import (
-    compat_urllib_parse,
-    compat_urllib_request,
-)
 from ..utils import (
     parse_duration,
 from ..utils import (
     parse_duration,
+    sanitized_Request,
+    urlencode_postdata,
 )
 
 
 )
 
 
@@ -49,8 +47,8 @@ class ShareSixIE(InfoExtractor):
         fields = {
             'method_free': 'Free'
         }
         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,
         req.add_header('Content-type', 'application/x-www-form-urlencoded')
 
         webpage = self._download_webpage(req, video_id,