diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-01-07 05:34:14 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-01-07 05:34:14 +0100 |
commit | 79f82953039f832576f6d0202c7bbeaa2fd390c0 (patch) | |
tree | 245362cb28544d73f9acfcd97727c4d28ba9c082 /youtube_dl/extractor/generic.py | |
parent | 400e58103d97d54f858dd70c62e1070de8d3c718 (diff) |
Use original Referer URL in Brightcove requests (Fixes #2110)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 2bfdf8f01..7d0e117de 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -225,7 +225,8 @@ class GenericIE(InfoExtractor): bc_url = BrightcoveIE._extract_brightcove_url(webpage) if bc_url is not None: self.to_screen('Brightcove video detected.') - return self.url_result(bc_url, 'Brightcove') + surl = smuggle_url(bc_url, {'Referer': url}) + return self.url_result(surl, 'Brightcove') # Look for embedded (iframe) Vimeo player mobj = re.search( |