]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/vodlocker.py
Merge pull request #1 from e7appew/python3
[youtubedl] / youtube_dl / extractor / vodlocker.py
index a97995a6dfd92383c2d25ea7250142404176ecad..a938a4007ead91a25ca84b43307ce16e1787e2e6 100644 (file)
@@ -2,11 +2,11 @@
 from __future__ import unicode_literals
 
 from .common import InfoExtractor
-from ..compat import compat_urllib_parse
 from ..utils import (
     ExtractorError,
     NO_DEFAULT,
     sanitized_Request,
+    urlencode_postdata,
 )
 
 
@@ -38,7 +38,7 @@ class VodlockerIE(InfoExtractor):
 
         if fields['op'] == 'download1':
             self._sleep(3, video_id)  # they do detect when requests happen too fast!
-            post = compat_urllib_parse.urlencode(fields)
+            post = urlencode_postdata(fields)
             req = sanitized_Request(url, post)
             req.add_header('Content-type', 'application/x-www-form-urlencoded')
             webpage = self._download_webpage(