diff options
| author | 2022-12-24 17:14:46 -0500 | |
|---|---|---|
| committer | 2022-12-24 17:14:46 -0500 | |
| commit | ebdfcd3cd3f76534a590ba08933ff7ea54813316 (patch) | |
| tree | 35db6003766dff695cf8a5aa24f47629b602b7c0 /gallery_dl/__init__.py | |
| parent | 3338dfce719c999467ffe08fd45663be8190057a (diff) | |
New upstream version 1.24.2.upstream/1.24.2
Diffstat (limited to 'gallery_dl/__init__.py')
| -rw-r--r-- | gallery_dl/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gallery_dl/__init__.py b/gallery_dl/__init__.py index 3701d6f..611b2b9 100644 --- a/gallery_dl/__init__.py +++ b/gallery_dl/__init__.py @@ -66,7 +66,12 @@ def main(): if args.cookies_from_browser: browser, _, profile = args.cookies_from_browser.partition(":") browser, _, keyring = browser.partition("+") - config.set((), "cookies", (browser, profile, keyring)) + if profile.startswith(":"): + container = profile[1:] + profile = None + else: + profile, _, container = profile.partition("::") + config.set((), "cookies", (browser, profile, keyring, container)) for opts in args.options: config.set(*opts) |
