[Sync Source] UnblockNeteaseMusic: complete search keywords
This commit is contained in:
parent
3e253bc6c5
commit
1b7dced7e9
@ -14,9 +14,9 @@ const find = id => {
|
||||
let info = filter(jsonBody.songs[0], ['id', 'name', 'alias', 'duration'])
|
||||
info.album = filter(jsonBody.songs[0].album, ['id', 'name'])
|
||||
info.artists = jsonBody.songs[0].artists.map(artist => filter(artist, ['id', 'name']))
|
||||
info.keyword = info.artists[0].name + ' - ' + info.name
|
||||
info.keyword = info.artists.map(artist => artist.name).join(' / ') + ' - ' + info.name
|
||||
return info
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = id => cache(find, id)
|
||||
module.exports = id => cache(find, id)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user