chore: search mb instead of rym for consistency when messing mbid

This commit is contained in:
Cory Dransfeldt 2023-08-10 15:36:48 -07:00
parent cbcfda582f
commit 034c98c027
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ module.exports = async function () {
.toLowerCase()}.jpg`,
url: album['mbid']
? `https://musicbrainz.org/album/${album['mbid']}`
: `https://rateyourmusic.com/search?searchtype=l&searchterm=${encodeURI(album['name'])}`,
: `https://musicbrainz.org/search?query=${encodeURI(album['name'])}&type=release_group`,
}
})
}

View file

@ -18,7 +18,7 @@ module.exports = async function () {
'https://cdn.coryd.dev/artists/missing-artist.jpg',
url: artist['mbid']
? `https://musicbrainz.org/artist/${artist['mbid']}`
: `https://rateyourmusic.com/search?searchterm=${encodeURI(artist['name'])}`,
: `https://musicbrainz.org/search?query=${encodeURI(artist['name'])}&type=artist`,
}
})
}