From 85b33f5c163f60dbd089a6b9bc2ba1366d3ddf93 Mon Sep 17 00:00:00 2001 From: Ralph Drake Date: Tue, 2 Jan 2024 00:58:36 +0000 Subject: [PATCH] [cookies] Fix `--cookies-from-browser` with macOS Firefox profiles (#8909) Ref: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles#firefox:mac Closes #8898 Authored by: RalphORama --- yt_dlp/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.py index a71fbc28ba..eac033e391 100644 --- a/yt_dlp/cookies.py +++ b/yt_dlp/cookies.py @@ -186,7 +186,7 @@ def _firefox_browser_dir(): if sys.platform in ('cygwin', 'win32'): return os.path.expandvars(R'%APPDATA%\Mozilla\Firefox\Profiles') elif sys.platform == 'darwin': - return os.path.expanduser('~/Library/Application Support/Firefox') + return os.path.expanduser('~/Library/Application Support/Firefox/Profiles') return os.path.expanduser('~/.mozilla/firefox')