0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

[YoutubeDL._calc_cookies] Restore the 'has_header' method

I didn't copied it from downloader/external
This commit is contained in:
Jaime Marquínez Ferrándiz 2015-01-24 20:05:35 +01:00
parent e5660ee6ae
commit 4b405cfc6e

View file

@ -892,6 +892,9 @@ def add_unredirected_header(self, k, v):
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')