0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-30 03:33:02 +00:00

[gorillavid] Encode fields

This commit is contained in:
Sergey M․ 2015-09-06 07:30:02 +06:00
parent e94cb5ae7e
commit 4abe214499

View file

@ -10,6 +10,7 @@
)
from ..utils import (
ExtractorError,
encode_dict,
int_or_none,
)
@ -88,7 +89,7 @@ def _real_extract(self, url):
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')