From 7111677e0f8b32e865592e9fd055e28f4c0227a7 Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Thu, 15 Jan 2026 06:34:30 -0500 Subject: [PATCH] Update osz.py --- libs/parsers/osz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/parsers/osz.py b/libs/parsers/osz.py index 42d3dcf..7d4171a 100644 --- a/libs/parsers/osz.py +++ b/libs/parsers/osz.py @@ -33,7 +33,7 @@ class OsuParser: self.metadata.offset = -30/1000 self.metadata.title["en"] = self.osu_metadata["Version"] self.metadata.subtitle["en"] = self.osu_metadata["Creator"] - match = re.search(r'\[Events\][\s\S]*?^[ \t]*(\d+),(\d+),"([^"]+)"', osu_file.read_text(), re.MULTILINE) + match = re.search(r'\[Events\][\s\S]*?^[ \t]*(\d+),(\d+),"([^"]+)"', osu_file.read_text(encoding='utf-8'), re.MULTILINE) if match: self.metadata.bgmovie = osu_file.parent / Path(match.group(3)) self.metadata.course_data[0] = CourseData()