diff options
| author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-11-07 21:06:48 +0100 | 
|---|---|---|
| committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-11-07 21:06:48 +0100 | 
| commit | dd5bcdc4c9cad0ee7e2d61343129ee1111048189 (patch) | |
| tree | 63e35ad38c5d6d600367753ffe5a5f5b1b3e8b6d /youtube_dl/extractor/generic.py | |
| parent | 6161d17579687abb4063380ae64c271398463e6b (diff) | |
[brightcove] Set the 'Referer' header if the url has the 'linkBaseUrl' parameter (fixes #1553)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
| -rw-r--r-- | youtube_dl/extractor/generic.py | 12 | 
1 files changed, 7 insertions, 5 deletions
| diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 04b7212f4..c7552fddb 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -55,15 +55,17 @@ class GenericIE(InfoExtractor):              u'skip': u'There is a limit of 200 free downloads / month for the test song',          },          # embedded brightcove video +        # it also tests brightcove videos that need to set the 'Referer' in the +        # http requests          {              u'add_ie': ['Brightcove'], -            u'url': u'http://www.scientificamerican.com/article.cfm?id=soap-bubble-physics', +            u'url': u'http://www.bfmtv.com/video/bfmbusiness/cours-bourse/cours-bourse-l-analyse-technique-154522/',              u'info_dict': { -                u'id': u'2365799484001', +                u'id': u'2765128793001',                  u'ext': u'mp4', -                u'title': u'Bubble Simulation', -                u'description': u'A visualization from a new computer model of foam behavior.', -                u'uploader': u'Scientific American', +                u'title': u'Le cours de bourse : l’analyse technique', +                u'description': u'md5:7e9ad046e968cb2d1114004aba466fd9', +                u'uploader': u'BFM BUSINESS',              },              u'params': {                  u'skip_download': True, | 
