fix(external): SonglistDifficultiesParser file reading

This commit is contained in:
283375 2023-09-16 20:31:38 +08:00
parent 5796d9a80f
commit 4899e0383f
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk

View File

@ -65,8 +65,7 @@ class SonglistDifficultiesParser(ArcaeaParser):
self.filepath = filepath
def parse(self) -> List[Union[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 = []