From eeced74f505f47b1c86018b9e137649a02f0b38b Mon Sep 17 00:00:00 2001 From: Tenshi <156825971+tenshi0xx@users.noreply.github.com> Date: Sat, 16 Mar 2024 10:38:47 +0700 Subject: [PATCH 1/2] Fix ETR difficulty download --- latest version/core/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latest version/core/download.py b/latest version/core/download.py index cc358d6..448f6c8 100644 --- a/latest version/core/download.py +++ b/latest version/core/download.py @@ -24,7 +24,7 @@ def get_song_file_md5(song_id: str, file_name: str) -> str: class SonglistParser: '''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'] has_songlist = False From 2f826e9ffce4175d3b2c62e48162345e3024652e Mon Sep 17 00:00:00 2001 From: Tenshi <156825971+tenshi0xx@users.noreply.github.com> Date: Sat, 16 Mar 2024 10:45:11 +0700 Subject: [PATCH 2/2] Fix ETR Score sending --- latest version/core/score.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latest version/core/score.py b/latest version/core/score.py index 0ffe269..4f37ca5 100644 --- a/latest version/core/score.py +++ b/latest version/core/score.py @@ -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: 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 all_note = self.all_note_count