[Sync Source] UnblockNeteaseMusic: complete search keywords

This commit is contained in:
CN_SZTL 2019-07-14 18:19:15 +08:00
parent 3e253bc6c5
commit 1b7dced7e9
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -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)