mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-14 04:07:28 +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:
@@ -1,6 +1,6 @@
|
||||
from .config_manager import Config
|
||||
|
||||
ARCAEA_SERVER_VERSION = 'v2.11.2.3'
|
||||
ARCAEA_SERVER_VERSION = 'v2.11.2.4'
|
||||
ARCAEA_LOG_DATBASE_VERSION = 'v1.1'
|
||||
|
||||
|
||||
|
||||
@@ -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