[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
parent 08916a49c7
commit b87e01c123
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):
"""