过滤tx源某些不支持播放的歌曲,解决播放此类内容会导致意外的问题

This commit is contained in:
lyswhut
2022-02-04 18:29:48 +08:00
parent 47ce71c959
commit 996396c943
2 changed files with 8 additions and 9 deletions
+7 -3
View File
@@ -32,7 +32,10 @@ export default {
},
handleResult(rawList) {
// console.log(rawList)
return rawList.map(item => {
const list = []
rawList.forEach(item => {
if (!item.strMediaMid) return
let types = []
let _types = {}
if (item.size128 !== 0) {
@@ -64,7 +67,7 @@ export default {
}
}
// types.reverse()
return {
list.push({
singer: this.getSinger(item.singer),
name: item.songname,
albumName: item.albumname,
@@ -83,8 +86,9 @@ export default {
types,
_types,
typeUrl: {},
}
})
})
return list
},
search(str, page = 1, { limit } = {}) {
if (limit == null) limit = this.limit