From 6b93305d8b7f00ec248a053a15a7478cc9bf8624 Mon Sep 17 00:00:00 2001 From: Viv Date: Sat, 10 Feb 2024 18:09:28 -0500 Subject: [PATCH] `parsers.py`: Fix bug with `1P`/`2P` start commands --- src/tja2fumen/parsers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tja2fumen/parsers.py b/src/tja2fumen/parsers.py index e2a48e0..10626c9 100644 --- a/src/tja2fumen/parsers.py +++ b/src/tja2fumen/parsers.py @@ -129,6 +129,8 @@ def split_tja_lines_into_courses(lines: List[str]) -> TJASong: # chart. But, we want multiplayer charts to inherit the # metadata from the course as a whole, so we deepcopy the # existing course for that difficulty. + if value in ["1P", "2P"]: + value = value[1] + value[0] # Fix user typo (e.g. 1P -> P1) if value in ["P1", "P2"]: current_course = current_course_basename + value parsed_tja.courses[current_course] = \