Fix parsing a month name in the series fixes #542
This commit is contained in:
parent
f250d2c5c3
commit
78a890f900
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user