feat: search rym if no mbid
This commit is contained in:
parent
3c4314be12
commit
e5efabeec4
2 changed files with 6 additions and 2 deletions
|
@ -23,7 +23,9 @@ module.exports = async function () {
|
|||
: `https://cdn.coryd.dev/albums/${album['name'].name
|
||||
.replace(/\s+/g, '-')
|
||||
.toLowerCase()}.jpg`,
|
||||
url: `https://musicbrainz.org/album/${album['mbid']}`,
|
||||
url: album['mbid']
|
||||
? `https://musicbrainz.org/album/${album['mbid']}`
|
||||
: `https://rateyourmusic.com/search?searchtype=l&searchterm=${encodeURI(album['name'])}`,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Reference in a new issue