mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-15 04:47:32 +08:00
[Bug fix]? A small encoding extension
- Use bytes instead of string to pass the data to the `json` module - For Arcaea 4.7.2
This commit is contained in:
@@ -126,7 +126,7 @@ class SonglistParser:
|
||||
'''解析songlist文件'''
|
||||
if not os.path.isfile(self.path):
|
||||
return
|
||||
with open(self.path, 'r', encoding='utf-8') as f:
|
||||
with open(self.path, 'rb') as f:
|
||||
self.data = loads(f.read()).get('songs', [])
|
||||
self.has_songlist = True
|
||||
for x in self.data:
|
||||
|
||||
Reference in New Issue
Block a user