From e8110859bfaed840606f68b2f162c62298dba214 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 15 Apr 2024 19:41:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=BC=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/core/music/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/core/music/utils.ts b/src/renderer/core/music/utils.ts index 7067d8ae..58bfce84 100644 --- a/src/renderer/core/music/utils.ts +++ b/src/renderer/core/music/utils.ts @@ -211,14 +211,14 @@ export const getOnlineOtherSourcePicByLocal = async(musicInfo: LX.Music.MusicInf } export const TRY_QUALITYS_LIST = ['flac24bit', 'flac', '320k'] as const -type tryQualityType = typeof TRY_QUALITYS_LIST[number] +type TryQualityType = typeof TRY_QUALITYS_LIST[number] export const getPlayQuality = (highQuality: LX.Quality, musicInfo: LX.Music.MusicInfoOnline): LX.Quality => { let type: LX.Quality = '128k' - if (TRY_QUALITYS_LIST.includes(highQuality as tryQualityType)) { + if (TRY_QUALITYS_LIST.includes(highQuality as TryQualityType)) { let list = qualityList.value[musicInfo.source] let t = TRY_QUALITYS_LIST - .slice(TRY_QUALITYS_LIST.indexOf(highQuality as tryQualityType)) + .slice(TRY_QUALITYS_LIST.indexOf(highQuality as TryQualityType)) .find(q => { return musicInfo.meta._qualitys[q] && list?.includes(q) })