From e15feb587d7358fabbbfe71d3ab7734603c83720 Mon Sep 17 00:00:00 2001 From: AJ Slater Date: Fri, 23 Feb 2024 17:52:25 -0800 Subject: [PATCH] comment on path_index() fragility --- comicfn2dict/parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comicfn2dict/parse.py b/comicfn2dict/parse.py index 0978c0f..74af443 100644 --- a/comicfn2dict/parse.py +++ b/comicfn2dict/parse.py @@ -48,8 +48,8 @@ class ComicFilenameParser: if not value: return -1 if value not in self._path_indexes: - # TODO This is fragile. - # Can I get it at match time? + # XXX This is fragile, but it's difficult to calculate the original + # position at match time from the ever changing _unparsed_path. if key == "ext": index = self.path.rfind(value) else: