diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-09-17 10:14:44 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-09-17 10:14:44 +0530 |
commit | 2b24afa6d7f0ed09a663b4483d29f7c05258edfe (patch) | |
tree | 68372b00c077e772435361cd278b0434d7692748 /yt_dlp/cookies.py | |
parent | 3166e6840c7f7b1ea3984f0e40a892d87e690480 (diff) |
Improve 5736d79172c47ff84740d5720467370a560febad
Diffstat (limited to 'yt_dlp/cookies.py')
-rw-r--r-- | yt_dlp/cookies.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.py index d502e91da..24a8250da 100644 --- a/yt_dlp/cookies.py +++ b/yt_dlp/cookies.py @@ -988,8 +988,8 @@ def _parse_browser_specification(browser_name, profile=None, keyring=None, conta raise ValueError(f'unsupported browser: "{browser_name}"') if keyring not in (None, *SUPPORTED_KEYRINGS): raise ValueError(f'unsupported keyring: "{keyring}"') - if profile is not None and _is_path(profile): - profile = os.path.expanduser(profile) + if profile is not None and _is_path(expand_path(profile)): + profile = expand_path(profile) return browser_name, profile, keyring, container |