From 68d481fd9fa7034ec5859ee45d8199ab5b8b1896 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 15 Apr 2024 19:41:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/core/music/utils.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/renderer/core/music/utils.ts b/src/renderer/core/music/utils.ts index 58bfce84..d2fd89af 100644 --- a/src/renderer/core/music/utils.ts +++ b/src/renderer/core/music/utils.ts @@ -219,9 +219,8 @@ export const getPlayQuality = (highQuality: LX.Quality, musicInfo: LX.Music.Musi let t = TRY_QUALITYS_LIST .slice(TRY_QUALITYS_LIST.indexOf(highQuality as TryQualityType)) - .find(q => { - return musicInfo.meta._qualitys[q] && list?.includes(q) - }) + .find(q => musicInfo.meta._qualitys[q] && list?.includes(q)) + if (t) type = t } return type