diff options
author | Florrie <towerofnix@gmail.com> | 2019-11-16 18:24:59 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-11-16 18:24:59 -0400 |
commit | c765eda6fb33ff7449d3ce6f958a1210ef8b25df (patch) | |
tree | 40284cf9145ee9d47b58fde2ba45f37a2c23b664 | |
parent | c32d860358d2dfd3370a0973418c11186e5ce7c1 (diff) |
fix contributed songs showing up when also artist
-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(', '); } |