Skip to content

Commit

Permalink
Update match.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovler-Young authored May 3, 2021
1 parent 55f72a3 commit 9e873eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/provider/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ const provider = {
bilibili: require('./bilibili')
}

const match = (id, source) => {
const match = (id, source, data) => {
let meta = {}
const candidate = (source || global.source || ['bilibili','qq', 'kuwo', 'migu']).filter(name => name in provider)
return find(id)
return find(id, data)
.then(info => {
meta = info
return Promise.all(candidate.map(name => provider[name].check(info).catch(() => {})))
Expand Down

0 comments on commit 9e873eb

Please sign in to comment.