Browse Source

[nfb] Add encode POST data

totalwebcasting
Sergey M. 11 years ago
parent
commit
3587159614
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/nfb.py

+ 1
- 1
youtube_dl/extractor/nfb.py View File

@ -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')


Loading…
Cancel
Save