projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[YoutubeDL._calc_cookies] Restore the 'has_header' method
[youtube-dl]
/
youtube_dl
/
YoutubeDL.py
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 4c3d45f48d99586c5e31487e8b91797e613aa349..458fd15ea2e9c76f79a087a2e5871f6ab5264492 100755
(executable)
--- 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')