1
0
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:
Abhijeet213 2025-05-16 10:51:40 +05:30
parent d8e9195e9b
commit d16d1e4c7a

View File

@ -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)
return super().clear(*args, **kwargs)