From ebdfcd3cd3f76534a590ba08933ff7ea54813316 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sat, 24 Dec 2022 17:14:46 -0500 Subject: New upstream version 1.24.2. --- gallery_dl/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gallery_dl/__init__.py') 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) -- cgit v1.2.3