From 2ccfd900f1d1f8049aff9d697c8a28899db0f414 Mon Sep 17 00:00:00 2001 From: Matthew Broadway Date: Thu, 3 Jun 2021 23:10:28 +0100 Subject: [PATCH] fix firefox path on windows to allow profiles to be specified by name --- youtube_dl/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/cookies.py b/youtube_dl/cookies.py index 6b8c1400b..c766340de 100644 --- a/youtube_dl/cookies.py +++ b/youtube_dl/cookies.py @@ -104,7 +104,7 @@ def _firefox_browser_dir(): if sys.platform in ('linux', 'linux2'): return os.path.expanduser('~/.mozilla/firefox') elif sys.platform == 'win32': - return os.path.expandvars(r'%APPDATA%\Mozilla\Firefox') + return os.path.expandvars(r'%APPDATA%\Mozilla\Firefox\Profiles') elif sys.platform == 'darwin': return os.path.expanduser('~/Library/Application Support/Firefox') else: