From c765eda6fb33ff7449d3ce6f958a1210ef8b25df Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 16 Nov 2019 18:24:59 -0400 Subject: fix contributed songs showing up when also artist --- upd8.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upd8.js b/upd8.js index 8890a5cb..7e811cd5 100644 --- a/upd8.js +++ b/upd8.js @@ -650,7 +650,7 @@ async function writeArtistPage(artistName, albumData) { ...getTracksReferencedBy(track, allTracks).filter(track => track.artists.includes(artistName)).map(track => `[${track.name}]`) ].filter(Boolean).join(', ') }; - if (contrib.length && track.artists.includes(artistName)) { + if (contrib.what && track.artists.includes(artistName)) { const nonTracks = contrib.what.split(',').map(what => what.trim()).filter(what => !(what.startsWith('[') && what.endsWith(']'))); contrib.what = nonTracks.join(', '); } -- cgit 1.3.0-6-gf8a5