Skip to content

Commit

Permalink
fix: 修复酷我音乐匹配的音频为版权音频 (#1435)
Browse files Browse the repository at this point in the history
* fix: 修复酷我音乐匹配的音频为版权音频

* style: with prettier [skip ci]

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
zzwtsy and github-actions[bot] authored Jul 17, 2024
1 parent 293a6f4 commit 8073825
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/provider/kuwo.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ const search = (info) => {
jsonBody.content[1].musicpage.abslist.length < 1
)
return Promise.reject();
const list = jsonBody.content[1].musicpage.abslist.map(format);
const list = jsonBody.content[1].musicpage.abslist
.filter((v) => v.tpay /* vip ? */ === '0')
.map(format);
const matched = select(list, info);
return matched ? matched.id : Promise.reject();
});
Expand Down

0 comments on commit 8073825

Please sign in to comment.