]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/vk.py
Imported Debian patch 2015.11.27.1-1.1
[youtubedl] / youtube_dl / extractor / vk.py
index 01960b827254a3190fb463919f9f8ce2efead676..d99a42a9f1dd982b50cc2b324714d6a75cb15d9b 100644 (file)
@@ -8,11 +8,11 @@ from .common import InfoExtractor
 from ..compat import (
     compat_str,
     compat_urllib_parse,
-    compat_urllib_request,
 )
 from ..utils import (
     ExtractorError,
     orderedSet,
+    sanitized_Request,
     str_to_int,
     unescapeHTML,
     unified_strdate,
@@ -182,7 +182,7 @@ class VKIE(InfoExtractor):
             'pass': password.encode('cp1251'),
         })
 
-        request = compat_urllib_request.Request(
+        request = sanitized_Request(
             'https://login.vk.com/?act=login',
             compat_urllib_parse.urlencode(login_form).encode('utf-8'))
         login_page = self._download_webpage(