impr(external): ArcaeaParser file reading

This commit is contained in:
2023-09-16 02:40:56 +08:00
parent 6258a55ba4
commit 5796d9a80f
3 changed files with 22 additions and 4 deletions

View File

@ -12,8 +12,7 @@ class SonglistParser(ArcaeaParser):
def parse(
self,
) -> List[Union[Song, SongLocalized, Difficulty, DifficultyLocalized]]:
with open(self.filepath, "r", encoding="utf-8") as sl_f:
songlist_json_root = json.loads(sl_f.read())
songlist_json_root = json.loads(self.read_file_text())
songlist_json = songlist_json_root["songs"]
results = []