[YoutubeDL._calc_cookies] Restore the 'has_header' method
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 24 Jan 2015 19:05:35 +0000 (20:05 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 24 Jan 2015 19:08:24 +0000 (20:08 +0100)
I didn't copied it from downloader/external

youtube_dl/YoutubeDL.py

index 4c3d45f48d99586c5e31487e8b91797e613aa349..458fd15ea2e9c76f79a087a2e5871f6ab5264492 100755 (executable)
@@ -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')