feat: more reliable images (hopefully)

This commit is contained in:
Cory Dransfeldt 2024-02-19 14:29:45 -08:00
parent d7981e9d4a
commit 7a15f47a8c
No known key found for this signature in database
3 changed files with 9 additions and 11 deletions

View file

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