Skip to content

Commit

Permalink
修复mg歌单搜索歌单播放数量显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Jun 17, 2023
1 parent ef411dd commit c6fb223
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions publish/changeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- 修复wy源热搜词失效的问题(#1401, @Folltoshe
- 修复Deepin 20下启用桌面歌词时可能会导致桌面卡死的问题(#1288
- 修复添加单首歌曲弹窗列表创建按钮无法取消的问题
- 修复mg歌单搜索歌单播放数量显示问题

### 其他

Expand Down
4 changes: 3 additions & 1 deletion src/renderer/utils/musicSdk/mg/songList.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,10 @@ export default {
if (body.code != this.successCode) throw new Error('failed')
return {
list: body.songListResultData.result.map(item => {
let num = parseInt(item.playNum)
if (isNaN(num)) num = 0
return {
play_count: formatPlayCount(item.playcount),
play_count: formatPlayCount(num),
id: item.id,
// author: item.createName,
name: item.name,
Expand Down

0 comments on commit c6fb223

Please sign in to comment.