mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[YoutubeDL._calc_cookies] Restore the 'has_header' method
I didn't copied it from downloader/external
This commit is contained in:
		| @@ -892,6 +892,9 @@ class YoutubeDL(object): | |||||||
|             def get_full_url(self): |             def get_full_url(self): | ||||||
|                 return self.url |                 return self.url | ||||||
|  |  | ||||||
|  |             def has_header(self, h): | ||||||
|  |                 return h in self.headers | ||||||
|  |  | ||||||
|         pr = _PseudoRequest(info_dict['url']) |         pr = _PseudoRequest(info_dict['url']) | ||||||
|         self.cookiejar.add_cookie_header(pr) |         self.cookiejar.add_cookie_header(pr) | ||||||
|         return pr.headers.get('Cookie') |         return pr.headers.get('Cookie') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz