feat: improve album links
This commit is contained in:
parent
282bc3a84d
commit
fc48e189e5
1 changed files with 4 additions and 2 deletions
|
@ -75,10 +75,12 @@ module.exports = async function () {
|
|||
title: track['attributes']['albumName'],
|
||||
artist: track['attributes']['artistName'],
|
||||
image: track['attributes']['artwork']['url'].replace('{w}', '300').replace('{h}', '300'),
|
||||
url: `https://musicbrainz.org/search?query=${track['attributes']['albumName'].replace(
|
||||
url: `https://musicbrainz.org/taglookup/index?tag-lookup.artist=${track['attributes'][
|
||||
'artistName'
|
||||
].replace(/\s+/g, '+')}&tag-lookup.release=${track['attributes']['albumName'].replace(
|
||||
/\s+/g,
|
||||
'+'
|
||||
)}&type=recording`,
|
||||
)}`,
|
||||
plays: 1,
|
||||
type: 'album',
|
||||
}
|
||||
|
|
Reference in a new issue