Skip to content

Commit

Permalink
fix: fix the problem that match does not return normally
Browse files Browse the repository at this point in the history
  • Loading branch information
hq001 committed Dec 4, 2020
1 parent 7c86e6a commit 32ef3f2
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions packages/api/module/song_url.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
// 歌曲链接

// 从 packages/unblock 中解析网易云音乐ID的播放链接,突破灰色歌曲限制
const match = require('@nondanee/unblockneteasemusic')
const match = require('@radishes/unblock')
const crypto = require('crypto')

const find = async (id) => {
await match(id, [
'qq',
// 'xiami',
// 'baidu',
'kugou',
'kuwo',
// 'joox',
// 'youtube',
'migu',
])
const find = (id) => {
return match(id)
.then((url) => {
return url.url
})
Expand Down

0 comments on commit 32ef3f2

Please sign in to comment.