[gorillavid] Encode fields
authorSergey M․ <dstftw@gmail.com>
Sun, 6 Sep 2015 01:30:02 +0000 (07:30 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 6 Sep 2015 01:30:02 +0000 (07:30 +0600)
youtube_dl/extractor/gorillavid.py

index 1024a5c225e8baef02661152f7a04d5ae73abe4f..1a42de2d53ea585094716156294c9e212f4e5f5c 100644 (file)
@@ -10,6 +10,7 @@ from ..compat import (
 )
 from ..utils import (
     ExtractorError,
+    encode_dict,
     int_or_none,
 )
 
@@ -88,7 +89,7 @@ class GorillaVidIE(InfoExtractor):
             if countdown:
                 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.add_header('Content-type', 'application/x-www-form-urlencoded')