From a540821005cb114b453635f801dcdeaea43c69c4 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 27 Oct 2023 15:34:18 -0700 Subject: [PATCH] fix: look up aliased artist images --- src/_data/music.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/_data/music.js b/src/_data/music.js index b2c2eabb..5659690c 100644 --- a/src/_data/music.js +++ b/src/_data/music.js @@ -51,9 +51,7 @@ module.exports = async function () { if (!response['artists'][artist]) { response['artists'][artist] = { title: artist, - image: `https://cdn.coryd.dev/artists/${track['attributes']['artistName'] - .replace(/\s+/g, '-') - .toLowerCase()}.jpg`, + image: `https://cdn.coryd.dev/artists/${artist.replace(/\s+/g, '-').toLowerCase()}.jpg`, url: track['attributes']['artistUrl'] ? track['attributes']['artistUrl'] : `https://musicbrainz.org/search?query=${track['attributes']['artistName'].replace(