aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2022-09-01 09:52:59 +0000
committerGitHub <noreply@github.com>2022-09-01 15:22:59 +0530
commit825d3ce386e66ac0c73e41e352d84053f9f0e624 (patch)
treef563ecd34577920d9e119f5719e3ef9d1ad4af5c /yt_dlp/options.py
parent92aa6d688358ab4f328d37e66f0db3c54d7ab89b (diff)
downloadhypervideo-pre-825d3ce386e66ac0c73e41e352d84053f9f0e624.tar.lz
hypervideo-pre-825d3ce386e66ac0c73e41e352d84053f9f0e624.tar.xz
hypervideo-pre-825d3ce386e66ac0c73e41e352d84053f9f0e624.zip
[cookies] Improve container support (#4806)
Closes #4800 Authored by: bashonly, pukkandan, coletdjnz
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index e50ecc579..da6b1d25b 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -1400,14 +1400,15 @@ def create_parser():
help='Do not read/dump cookies from/to file (default)')
filesystem.add_option(
'--cookies-from-browser',
- dest='cookiesfrombrowser', metavar='BROWSER[+KEYRING][:PROFILE[:CONTAINER]]',
+ dest='cookiesfrombrowser', metavar='BROWSER[+KEYRING][:PROFILE][::CONTAINER]',
help=(
- 'The name of the browser and (optionally) the name/path of the profile to load cookies from '
- '(and container name if Firefox) separated by a ":". '
+ 'The name of the browser to load cookies from. '
f'Currently supported browsers are: {", ".join(sorted(SUPPORTED_BROWSERS))}. '
- 'By default, the default container of the most recently accessed profile is used. '
- 'The keyring used for decrypting Chromium cookies on Linux can be '
- '(optionally) specified after the browser name separated by a "+". '
+ 'Optionally, the KEYRING used for decrypting Chromium cookies on Linux, '
+ 'the name/path of the PROFILE to load cookies from, '
+ 'and the CONTAINER name (if Firefox) ("none" for no container) '
+ 'can be given with their respective seperators. '
+ 'By default, all containers of the most recently accessed profile are used. '
f'Currently supported keyrings are: {", ".join(map(str.lower, sorted(SUPPORTED_KEYRINGS)))}'))
filesystem.add_option(
'--no-cookies-from-browser',