优化歌曲匹配规则

pull/392/head
lyswhut 2021-01-09 15:15:52 +08:00
parent 7990e841e0
commit 7756b62f4c
1 changed files with 7 additions and 0 deletions

View File

@ -97,6 +97,13 @@ export default {
result.splice(i, 1) result.splice(i, 1)
} }
} }
for (let i = result.length - 1; i > -1; i--) {
const item = result[i]
if (item.name === musicInfo.name && item.singer === musicInfo.singer && item.albumName === musicInfo.albumName) {
newResult.push(item)
result.splice(i, 1)
}
}
for (let i = result.length - 1; i > -1; i--) { for (let i = result.length - 1; i > -1; i--) {
const item = result[i] const item = result[i]
if (item.singer === musicInfo.singer && item.name === musicInfo.name) { if (item.singer === musicInfo.singer && item.name === musicInfo.name) {