Use original Referer URL in Brightcove requests (Fixes #2110)

This commit is contained in:
Philipp Hagemeister 2014-01-07 05:34:14 +01:00
parent 400e58103d
commit 79f8295303
3 changed files with 11 additions and 6 deletions

View file

@ -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(