aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nfb.py
diff options
context:
space:
mode:
authorSergey M. <dstftw@gmail.com>2014-02-07 02:13:04 +0700
committerSergey M. <dstftw@gmail.com>2014-02-07 02:13:04 +0700
commit3587159614bc6c4632a13f0b7ffa94212a51ece7 (patch)
tree9bc9d1e176b23d0ccec7f1fa03945ff8e59f6f2c /youtube_dl/extractor/nfb.py
parentd67cc9fa7c1c38fa72ed8990965ef0aeebbdb43a (diff)
[nfb] Add encode POST data
Diffstat (limited to 'youtube_dl/extractor/nfb.py')
-rw-r--r--youtube_dl/extractor/nfb.py2
1 files changed, 1 insertions, 1 deletions
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')