youtube-dl

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

commit 4b405cfc6e4f9184567b94ee2f8a4a9851a912b5
parent e5660ee6aebacee4b149648bee1a7ce1ec72c1e4
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date:   Sat, 24 Jan 2015 20:05:35 +0100

[YoutubeDL._calc_cookies] Restore the 'has_header' method

I didn't copied it from downloader/external

Diffstat:
Myoutube_dl/YoutubeDL.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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')