]> jfr.im git - yt-dlp.git/commitdiff
Fix `--cookies-from-browser` CLI parsing
authorpukkandan <redacted>
Mon, 5 Dec 2022 19:05:08 +0000 (00:35 +0530)
committerpukkandan <redacted>
Mon, 5 Dec 2022 19:05:53 +0000 (00:35 +0530)
Closes #5716

yt_dlp/__init__.py

index f1d6c369bdbd95bb85683171a2d3567c11bf5fd1..202f102ba9e4e7ba640eb3a8ea0e7a0a984264e3 100644 (file)
@@ -350,7 +350,7 @@ def parse_chapters(name, value):
         mobj = re.fullmatch(r'''(?x)
             (?P<name>[^+:]+)
             (?:\s*\+\s*(?P<keyring>[^:]+))?
-            (?:\s*:\s*(?P<profile>.+?))?
+            (?:\s*:\s*(?!:)(?P<profile>.+?))?
             (?:\s*::\s*(?P<container>.+))?
         ''', opts.cookiesfrombrowser)
         if mobj is None: