[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:
Lost-MSth
2023-09-14 22:01:15 +08:00
parent f373c7b052
commit 5788972692
4 changed files with 21 additions and 3 deletions

View File

@@ -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'

View File

@@ -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: