This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[YoutubeDL._calc_cookies] Restore the 'has_header' method
I didn't copied it from downloader/external
totalwebcasting
Jaime Marquínez Ferrándiz
10 years ago
parent
e5660ee6ae
commit
4b405cfc6e
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
youtube_dl/YoutubeDL.py
+ 3
- 0
youtube_dl/YoutubeDL.py
View File
@ -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
'
)
Write
Preview
Loading…
Cancel
Save