Skip to content

Commit 12e577f

Browse files
committed
ccloli: fix tag parsing
fixed the case 'namespace:ab:cdef'
1 parent 7cac4ad commit 12e577f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comiclib/scanner/20-ccloli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def scan(self, path: Path, id: str, metadata: dict, prev_scanners: list[str]) ->
4040
if line.startswith("Category: "): metadata["categories"].add(line.removeprefix("Category: "))
4141
elif line_tags:
4242
if line.startswith("> "):
43-
namespace, _, names = line.removeprefix("> ").replace(":", ":").partition(':')
43+
namespace, _, names = line.removeprefix("> ").replace(":", ":", 1).partition(':')
4444
for name in names.split(","):
4545
metadata["tags"].add(f"{namespace}:{name.strip()}")
4646
else:

0 commit comments

Comments
 (0)