mirror of https://github.com/yt-dlp/yt-dlp.git
[cookies] Update MacOS12 `Cookies.binarycookies` location (#2742)
Authored by: mdpauley
This commit is contained in:
parent
e8969bda94
commit
1f7db8533a
|
@ -453,6 +453,9 @@ def _extract_safari_cookies(profile, logger):
|
||||||
|
|
||||||
cookies_path = os.path.expanduser('~/Library/Cookies/Cookies.binarycookies')
|
cookies_path = os.path.expanduser('~/Library/Cookies/Cookies.binarycookies')
|
||||||
|
|
||||||
|
if not os.path.isfile(cookies_path):
|
||||||
|
logger.debug('Trying secondary cookie location')
|
||||||
|
cookies_path = os.path.expanduser('~/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies')
|
||||||
if not os.path.isfile(cookies_path):
|
if not os.path.isfile(cookies_path):
|
||||||
raise FileNotFoundError('could not find safari cookies database')
|
raise FileNotFoundError('could not find safari cookies database')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue