优化
This commit is contained in:
parent
e8110859bf
commit
68d481fd9f
@ -219,9 +219,8 @@ export const getPlayQuality = (highQuality: LX.Quality, musicInfo: LX.Music.Musi
|
|||||||
|
|
||||||
let t = TRY_QUALITYS_LIST
|
let t = TRY_QUALITYS_LIST
|
||||||
.slice(TRY_QUALITYS_LIST.indexOf(highQuality as TryQualityType))
|
.slice(TRY_QUALITYS_LIST.indexOf(highQuality as TryQualityType))
|
||||||
.find(q => {
|
.find(q => musicInfo.meta._qualitys[q] && list?.includes(q))
|
||||||
return musicInfo.meta._qualitys[q] && list?.includes(q)
|
|
||||||
})
|
|
||||||
if (t) type = t
|
if (t) type = t
|
||||||
}
|
}
|
||||||
return type
|
return type
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user