mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-07 13:58:31 +00:00
somecheck
This commit is contained in:
parent
d8e9195e9b
commit
d16d1e4c7a
@ -1383,6 +1383,7 @@ def get_cookies_for_url(self, url):
|
||||
# Ref: https://github.com/python/cpython/blob/3.7/Lib/http/cookiejar.py#L1360
|
||||
self._policy._now = self._now = int(time.time())
|
||||
return self._cookies_for_request(urllib.request.Request(normalize_url(sanitize_url(url))))
|
||||
|
||||
def clear(self, *args, **kwargs):
|
||||
with contextlib.suppress(KeyError):
|
||||
return super().clear(*args, **kwargs)
|
Loading…
Reference in New Issue
Block a user