Skip to content

Commit

Permalink
ccloli: fix tag parsing
Browse files Browse the repository at this point in the history
fixed the case 'namespace:ab:cdef'
  • Loading branch information
URenko committed May 4, 2024
1 parent 7cac4ad commit 12e577f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comiclib/scanner/20-ccloli.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def scan(self, path: Path, id: str, metadata: dict, prev_scanners: list[str]) ->
if line.startswith("Category: "): metadata["categories"].add(line.removeprefix("Category: "))
elif line_tags:
if line.startswith("> "):
namespace, _, names = line.removeprefix("> ").replace(":", ":").partition(':')
namespace, _, names = line.removeprefix("> ").replace(":", ":", 1).partition(':')
for name in names.split(","):
metadata["tags"].add(f"{namespace}:{name.strip()}")
else:
Expand Down

0 comments on commit 12e577f

Please sign in to comment.