Browse Source

[vimeo] Don't pollute std_headers

Fixes #8778
totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
0f56a4b443
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      youtube_dl/extractor/vimeo.py

+ 2
- 3
youtube_dl/extractor/vimeo.py View File

@ -277,9 +277,8 @@ class VimeoIE(VimeoBaseInfoExtractor):
def _real_extract(self, url):
url, data = unsmuggle_url(url, {})
headers = std_headers
headers = std_headers.copy()
if 'http_headers' in data:
headers = headers.copy()
headers.update(data['http_headers'])
if 'Referer' not in headers:
headers['Referer'] = url
@ -294,7 +293,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
url = 'https://vimeo.com/' + video_id
# Retrieve video webpage to extract further information
request = sanitized_Request(url, None, headers)
request = sanitized_Request(url, headers=headers)
try:
webpage = self._download_webpage(request, video_id)
except ExtractorError as ee:


Loading…
Cancel
Save