youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 3587159614bc6c4632a13f0b7ffa94212a51ece7
parent d67cc9fa7c1c38fa72ed8990965ef0aeebbdb43a
Author: Sergey M <dstftw@gmail.com>
Date:   Fri,  7 Feb 2014 02:13:04 +0700

[nfb] Add encode POST data
Diffstat:
Myoutube_dl/extractor/nfb.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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')