Merge pull request #153 from tenshi0xx/dev

- Fix ETR difficulty download
- Fix ETR score uploading
This commit is contained in:
Lost-MSth
2024-03-16 12:43:10 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

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

View File

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