comment on path_index() fragility
This commit is contained in:
parent
51cb5eac7e
commit
e15feb587d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user