diff options
-rw-r--r-- | upd8.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(', '); } |