1
0
Fork 0

[cookies] Move YoutubeDLCookieJar to cookies module (#7091)

Authored by: coletdjnz
This commit is contained in:
coletdjnz 2023-05-27 19:08:19 +12:00 committed by GitHub
commit b87e01c123
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 157 additions and 137 deletions

View file

@ -3444,7 +3444,7 @@ class InfoExtractor:
def _get_cookies(self, url):
""" Return a http.cookies.SimpleCookie with the cookies for the url """
return LenientSimpleCookie(self._downloader._calc_cookies(url))
return LenientSimpleCookie(self._downloader.cookiejar.get_cookie_header(url))
def _apply_first_set_cookie_header(self, url_handle, cookie):
"""