youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 0f56a4b44366234dafbd4b56559c610d6a0d5b4c
parent 1b5284b13f1b579b2cbac5ce6ab9faa5b95800fb
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date:   Sun,  6 Mar 2016 17:01:05 +0800

[vimeo] Don't pollute std_headers

Fixes #8778

Diffstat:
Myoutube_dl/extractor/vimeo.py | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py @@ -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: