浏览代码

[gorillavid] Encode fields

Sergey M․ 10 年之前
父节点
当前提交
4abe214499
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/gorillavid.py

+ 2 - 1
youtube_dl/extractor/gorillavid.py

@@ -10,6 +10,7 @@ from ..compat import (
 )
 )
 from ..utils import (
 from ..utils import (
     ExtractorError,
     ExtractorError,
+    encode_dict,
     int_or_none,
     int_or_none,
 )
 )
 
 
@@ -88,7 +89,7 @@ class GorillaVidIE(InfoExtractor):
             if countdown:
             if countdown:
                 self._sleep(countdown, video_id)
                 self._sleep(countdown, video_id)
 
 
-            post = compat_urllib_parse.urlencode(fields)
+            post = compat_urllib_parse.urlencode(encode_dict(fields))
 
 
             req = compat_urllib_request.Request(url, post)
             req = compat_urllib_request.Request(url, post)
             req.add_header('Content-type', 'application/x-www-form-urlencoded')
             req.add_header('Content-type', 'application/x-www-form-urlencoded')