From c2f9fc44776f1a5cb343963a00a1524e6ff3154f Mon Sep 17 00:00:00 2001 From: Florrie Date: Tue, 19 Nov 2019 15:26:04 -0400 Subject: don't show only-base-contributed tracks i.e, don't show tracks in artist listings to which the artist has only contributed a based-upon song to; these tracks clutter the list and are less useful than they were before thanks to each track's list of tracks that reference it on its page --- site.css | 4 ---- upd8.js | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/site.css b/site.css index 587138e6..f10af38a 100644 --- a/site.css +++ b/site.css @@ -140,10 +140,6 @@ h1 { margin-bottom: 10px; } -li.contributed-only-original { - opacity: 0.7; -} - #top-index #content h1 { text-align: center; font-size: 2em; 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('' + artistName + ':'))); @@ -705,7 +704,6 @@ async function writeArtistPage(artistName, albumData) { ].filter(Boolean).join(', ')}

${tracks.length && fixWS`

Tracks

-

Dim tracks are tracks that this artist contributed only a based-upon song to.

    ${tracks.map(track => { const contrib = { @@ -720,7 +718,7 @@ async function writeArtistPage(artistName, albumData) { contrib.what = nonTracks.join(', '); } return fixWS` -
  1. +
  2. ${track.name} ${track.artists.includes(artistName) && track.artists.length > 1 && `(with ${getArtistString(track.artists.filter(a => a !== artistName))})`} ${contrib.what && `(${getContributionString(contrib, tracks) || 'contributed'})`} -- cgit 1.3.0-6-gf8a5