]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/moevideo.py
Update the changelog.
[youtubedl] / youtube_dl / extractor / moevideo.py
index d930b96343bd081f029ad1bb7ce1ceee3c241f59..978d5d5bfeaf5ff64b7279343876a3177c43339a 100644 (file)
@@ -5,11 +5,11 @@ import json
 import re
 
 from .common import InfoExtractor
-from ..compat import compat_urllib_parse
 from ..utils import (
     ExtractorError,
     int_or_none,
     sanitized_Request,
+    urlencode_postdata,
 )
 
 
@@ -77,7 +77,7 @@ class MoeVideoIE(InfoExtractor):
             ],
         ]
         r_json = json.dumps(r)
-        post = compat_urllib_parse.urlencode({'r': r_json})
+        post = urlencode_postdata({'r': r_json})
         req = sanitized_Request(self._API_URL, post)
         req.add_header('Content-type', 'application/x-www-form-urlencoded')