diff --git a/app/objects/beatmap.py b/app/objects/beatmap.py index dc39075..c3ba1c1 100644 --- a/app/objects/beatmap.py +++ b/app/objects/beatmap.py @@ -156,7 +156,11 @@ def _parse_beatmap_file_from_path(path: Path) -> dict[str, dict[str, str]]: data: dict[str, dict[str, str]] = {} category: str = "" - for line in path.read_text().splitlines(): + # NOTE: in linux this works just fine + # but on windows thing just shits the bed, fuck you windows. + for line in ( + path.read_bytes().decode(encoding="utf-8", errors="ignore").splitlines() + ): if not line.strip(): continue