feat: more reliable images (hopefully)
This commit is contained in:
parent
d7981e9d4a
commit
7a15f47a8c
3 changed files with 9 additions and 11 deletions
|
@ -23,9 +23,7 @@ export default async function () {
|
|||
title: artist['name'],
|
||||
plays: artist['playcount'],
|
||||
rank: artist['@attr']['rank'],
|
||||
image: `https://cdn.coryd.dev/artists/${removeAccents(artist['name'])
|
||||
.replace(/\s+/g, '-')
|
||||
.toLowerCase()}.jpg`,
|
||||
image: `https://cdn.coryd.dev/artists/${removeAccents(artist['name']).replace(/\s+/g, '-').toLowerCase()}.jpg`,
|
||||
url: mbid
|
||||
? `https://musicbrainz.org/artist/${mbid}`
|
||||
: `https://musicbrainz.org/search?query=${artist['name'].replace(
|
||||
|
|
Reference in a new issue