mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2025-12-14 08:06:23 +08:00
Merge pull request #153 from tenshi0xx/dev
- Fix ETR difficulty download - Fix ETR score uploading
This commit is contained in:
@@ -24,7 +24,7 @@ def get_song_file_md5(song_id: str, file_name: str) -> str:
|
|||||||
class SonglistParser:
|
class SonglistParser:
|
||||||
'''songlist文件解析器'''
|
'''songlist文件解析器'''
|
||||||
|
|
||||||
FILE_NAMES = ['0.aff', '1.aff', '2.aff', '3.aff',
|
FILE_NAMES = ['0.aff', '1.aff', '2.aff', '3.aff', '4.aff',
|
||||||
'base.ogg', '3.ogg', 'video.mp4', 'video_audio.ogg', 'video_720.mp4', 'video_1080.mp4']
|
'base.ogg', '3.ogg', 'video.mp4', 'video_audio.ogg', 'video_720.mp4', 'video_1080.mp4']
|
||||||
|
|
||||||
has_songlist = False
|
has_songlist = False
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ class Score:
|
|||||||
'''分数有效性检查'''
|
'''分数有效性检查'''
|
||||||
if self.shiny_perfect_count < 0 or self.perfect_count < 0 or self.near_count < 0 or self.miss_count < 0 or self.score < 0 or self.time_played <= 0:
|
if self.shiny_perfect_count < 0 or self.perfect_count < 0 or self.near_count < 0 or self.miss_count < 0 or self.score < 0 or self.time_played <= 0:
|
||||||
return False
|
return False
|
||||||
if self.song.difficulty not in (0, 1, 2, 3):
|
if self.song.difficulty not in (0, 1, 2, 3, 4):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
all_note = self.all_note_count
|
all_note = self.all_note_count
|
||||||
|
|||||||
Reference in New Issue
Block a user