From: Jaime Marquínez Ferrándiz Date: Sat, 24 Jan 2015 19:05:35 +0000 (+0100) Subject: [YoutubeDL._calc_cookies] Restore the 'has_header' method X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=4b405cfc6e4f9184567b94ee2f8a4a9851a912b5;p=youtube-dl [YoutubeDL._calc_cookies] Restore the 'has_header' method I didn't copied it from downloader/external --- diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 4c3d45f48..458fd15ea 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -892,6 +892,9 @@ class YoutubeDL(object): def get_full_url(self): return self.url + def has_header(self, h): + return h in self.headers + pr = _PseudoRequest(info_dict['url']) self.cookiejar.add_cookie_header(pr) return pr.headers.get('Cookie')