From: Sergey M. Date: Thu, 6 Feb 2014 19:13:04 +0000 (+0700) Subject: [nfb] Add encode POST data X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=3587159614bc6c4632a13f0b7ffa94212a51ece7;p=youtube-dl [nfb] Add encode POST data --- diff --git a/youtube_dl/extractor/nfb.py b/youtube_dl/extractor/nfb.py index 09de724f9..92b4bb8df 100644 --- a/youtube_dl/extractor/nfb.py +++ b/youtube_dl/extractor/nfb.py @@ -43,7 +43,7 @@ class NFBIE(InfoExtractor): page, 'director name', fatal=False) request = compat_urllib_request.Request('https://www.nfb.ca/film/%s/player_config' % video_id, - compat_urllib_parse.urlencode({'getConfig': 'true'})) + compat_urllib_parse.urlencode({'getConfig': 'true'}).encode('ascii')) request.add_header('Content-Type', 'application/x-www-form-urlencoded') request.add_header('X-NFB-Referer', 'http://www.nfb.ca/medias/flash/NFBVideoPlayer.swf')