mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
parent
1b5284b13f
commit
0f56a4b443
@ -277,9 +277,8 @@ def _real_initialize(self):
|
||||
|
||||
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 @@ def _real_extract(self, url):
|
||||
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…
Reference in New Issue
Block a user