Skip to content

Commit

Permalink
[cookies] Add --cookies-from-browser support for MS Store Firefox (y…
Browse files Browse the repository at this point in the history
…t-dlp#11731)

Authored by: wesson09
  • Loading branch information
wesson09 authored Dec 4, 2024
1 parent cfa76f3 commit 354cb40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yt_dlp/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 354cb40

Please sign in to comment.