X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fnfb.py;h=92b4bb8df9e8b310ae5b044deb6d523099b3d8bb;hb=d914d9d1873b9d9e4d0b5cc20f3f26ef9c12783e;hp=09de724f9cc31328dc9193ac0a623dbf222e031e;hpb=0bf35c5cf501ceda21e0b7c047f10c5ce9eea172;p=youtube-dl 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')