diff options
author | Matt Broadway <mattdbway@gmail.com> | 2021-12-27 01:28:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-27 06:58:44 +0530 |
commit | f59f5ef8b6d871f61714386e6ec14583713a1582 (patch) | |
tree | 0843be9f819f2c4c26396ccebf88634887ef23b4 /yt_dlp/options.py | |
parent | f44afb54ef5c0cf02fb9fe08be377929f94b9da8 (diff) | |
download | hypervideo-pre-f59f5ef8b6d871f61714386e6ec14583713a1582.tar.lz hypervideo-pre-f59f5ef8b6d871f61714386e6ec14583713a1582.tar.xz hypervideo-pre-f59f5ef8b6d871f61714386e6ec14583713a1582.zip |
[cookies] Support other keyrings (#2032)
Authored by: mbway
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 5be236c53..6e56b8eae 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -20,7 +20,7 @@ from .utils import ( remove_end, write_string, ) -from .cookies import SUPPORTED_BROWSERS +from .cookies import SUPPORTED_BROWSERS, SUPPORTED_KEYRINGS from .version import __version__ from .downloader.external import list_external_downloaders @@ -1174,14 +1174,15 @@ def parseOpts(overrideArguments=None): help='Do not read/dump cookies from/to file (default)') filesystem.add_option( '--cookies-from-browser', - dest='cookiesfrombrowser', metavar='BROWSER[:PROFILE]', + dest='cookiesfrombrowser', metavar='BROWSER[+KEYRING][:PROFILE]', help=( - 'Load cookies from a user profile of the given web browser. ' - 'Currently supported browsers are: {}. ' - 'You can specify the user profile name or directory using ' - '"BROWSER:PROFILE_NAME" or "BROWSER:PROFILE_PATH". ' - 'If no profile is given, the most recently accessed one is used'.format( - ', '.join(sorted(SUPPORTED_BROWSERS))))) + 'The name of the browser and (optionally) the name/path of ' + 'the profile to load cookies from, separated by a ":". ' + f'Currently supported browsers are: {", ".join(sorted(SUPPORTED_BROWSERS))}. ' + 'By default, 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 "+". ' + f'Currently supported keyrings are: {", ".join(map(str.lower, sorted(SUPPORTED_KEYRINGS)))}')) filesystem.add_option( '--no-cookies-from-browser', action='store_const', const=None, dest='cookiesfrombrowser', |