Fix parsing a month name in the series fixes #542

This commit is contained in:
Timmy Welch 2023-10-06 20:06:39 -07:00
parent f250d2c5c3
commit 78a890f900
2 changed files with 19 additions and 0 deletions

View File

@ -624,6 +624,9 @@ def parse(p: Parser) -> Callable[[Parser], Callable | None] | None: # type: ign
return parse_series
# This is text that just happens to also be a month/day
else:
# Add this to the series and get the next item, parse_series expects the next item to be the current item
p.series_parts.append(item)
p.get()
if p.firstItem:
p.firstItem = False
return parse_series

View File

@ -23,6 +23,22 @@ datadir = pathlib.Path(__file__).parent / "data"
cbz_path = datadir / "Cory Doctorow's Futuristic Tales of the Here and Now #001 - Anda's Game (2007).cbz"
names = [
(
"Karl May #001 Old Shatterhand.cbr",
"Month in series",
{
"issue": "1",
"series": "Karl May",
"title": "Old Shatterhand",
"publisher": "",
"volume": "",
"year": "",
"remainder": "",
"issue_count": "",
"alternate": "",
},
(False, True),
),
(
"batman #3 title (DC).cbz",
"honorific and publisher in series",