« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/upd8.js b/upd8.js
index d169d820..c2aaad31 100644
--- a/upd8.js
+++ b/upd8.js
@@ -671,8 +671,7 @@ async function writeArtistPage(artistName, albumData) {
     const allTracks = getAllTracks(albumData);
     const tracks = sortByDate(allTracks.filter(track => (
         track.artists.includes(artistName) ||
-        track.contributors.some(({ who }) => who === artistName) ||
-        getTracksReferencedBy(track, allTracks).some(track => track.artists.includes(artistName))
+        track.contributors.some(({ who }) => who === artistName)
     )));
     const artThings = sortByDate(albumData.concat(allTracks).filter(thing => (thing.coverArtists || []).some(({ who }) => who === artistName)));
     const commentaryThings = sortByDate(albumData.concat(allTracks).filter(thing => thing.commentary && thing.commentary.includes('<i>' + artistName + ':</i>')));
@@ -705,7 +704,6 @@ async function writeArtistPage(artistName, albumData) {
                     ].filter(Boolean).join(', ')}</p>
                     ${tracks.length && fixWS`
                         <h2 id="tracks">Tracks</h2>
-                        <p>Dim tracks are tracks that this artist contributed only a based-upon song to.</p>
                         <ol>
                             ${tracks.map(track => {
                                 const contrib = {
@@ -720,7 +718,7 @@ async function writeArtistPage(artistName, albumData) {
                                     contrib.what = nonTracks.join(', ');
                                 }
                                 return fixWS`
-                                    <li class="${!track.artists.includes(artistName) && `contributed ${track.contributors.filter(({ who }) => who === artistName).every(({ what }) => what && what.startsWith('[') && what.endsWith(']')) && 'contributed-only-original'}`}">
+                                    <li class="${!track.artists.includes(artistName) && `contributed`}">
                                         <a href="${TRACK_DIRECTORY}/${track.directory}/index.html">${track.name}</a>
                                         ${track.artists.includes(artistName) && track.artists.length > 1 && `<span="contributed">(with ${getArtistString(track.artists.filter(a => a !== artistName))})</span>`}
                                         ${contrib.what && `<span class="contributed">(${getContributionString(contrib, tracks) || 'contributed'})</span>`}