diff options
author | wesson09 <49007620+wesson09@users.noreply.github.com> | 2024-12-04 18:41:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-04 18:41:58 +0100 |
commit | 354cb4026cf2191e1a130ec2a627b95cabfbc60a (patch) | |
tree | 5c0d03b66a3102f13679b45dd6d8f26c5256378f | |
parent | cfa76f35d25eaf993437df8b833befbbf9255331 (diff) |
[cookies] Add `--cookies-from-browser` support for MS Store Firefox (#11731)
Authored by: wesson09
-rw-r--r-- | yt_dlp/cookies.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.py index 772433b0f..fad323c90 100644 --- a/yt_dlp/cookies.py +++ b/yt_dlp/cookies.py @@ -195,7 +195,10 @@ def _extract_firefox_cookies(profile, container, logger): def _firefox_browser_dirs(): if sys.platform in ('cygwin', 'win32'): - yield os.path.expandvars(R'%APPDATA%\Mozilla\Firefox\Profiles') + yield from map(os.path.expandvars, ( + R'%APPDATA%\Mozilla\Firefox\Profiles', + R'%LOCALAPPDATA%\Packages\Mozilla.Firefox_n80bbvh6b1yt2\LocalCache\Roaming\Mozilla\Firefox\Profiles', + )) elif sys.platform == 'darwin': yield os.path.expanduser('~/Library/Application Support/Firefox/Profiles') |