Skip to content

Commit

Permalink
兼容处理#网易云竟然会删歌,好好的一首歌,歌曲信息说没就没了
Browse files Browse the repository at this point in the history
  • Loading branch information
sunzongzheng committed Jun 8, 2018
1 parent 88fc535 commit 70fafd4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/renderer/view/main/playlist/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,16 @@
}
this.list = this.list.map(item => {
const info = detail[item.vendor][item.songId]
item.cp = info.cp
item.name = info.name
item.commentId = info.commentId
item.album = info.album
item.artists = info.artists
if(info) {
item.cp = info.cp
item.name = info.name
item.commentId = info.commentId
item.album = info.album
item.artists = info.artists
} else {
// 音乐平台删歌以后这首歌就不能听了
item.cp = true
}
return item
})
}
Expand Down

0 comments on commit 70fafd4

Please sign in to comment.