diff --git a/comicapi/filenameparser.py b/comicapi/filenameparser.py index 7c6681e..02c1a53 100644 --- a/comicapi/filenameparser.py +++ b/comicapi/filenameparser.py @@ -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 diff --git a/testing/filenames.py b/testing/filenames.py index ce62d84..490f0b2 100644 --- a/testing/filenames.py +++ b/testing/filenames.py @@ -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",