This commit is contained in:
lyswhut
2023-02-01 12:50:52 +08:00
parent ba3b2f613a
commit 6075f413dc
50 changed files with 74 additions and 70 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ export const fixNewMusicInfoQuality = (musicInfo: LX.Music.MusicInfo) => {
}
export const filterMusicList = <T extends LX.Music.MusicInfo>(list: T[]): T[] => {
const ids: Set<string> = new Set()
const ids = new Set<string>()
return list.filter(s => {
if (!s.id || ids.has(s.id) || !s.name) return false
if (s.singer == null) s.singer = ''