mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-05 21:58:56 +08:00
过滤tx源某些不支持播放的歌曲
This commit is contained in:
parent
19c867c9ff
commit
afe0363cd4
@ -1,3 +1,7 @@
|
||||
### 新增
|
||||
|
||||
- 新增“点击列表里的歌曲时自动切换到当前列表播放”设置,此功能仅对歌单、排行榜有效,默认关闭
|
||||
|
||||
### 优化
|
||||
|
||||
- 过滤tx源某些不支持播放的歌曲,解决播放此类内容会导致意外的问题
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user