diff options
Diffstat (limited to 'src/search.js')
-rw-r--r-- | src/search.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/search.js b/src/search.js index b82a77b8..34718b5c 100644 --- a/src/search.js +++ b/src/search.js @@ -70,12 +70,23 @@ async function populateSearchIndexes(indexes, wikiData) { indexes.tracks, track => ({ name: track.name, + color: track.color, album: track.album.name, + albumDirectory: track.album.directory, + artists: [ track.artistContribs.map(contrib => contrib.artist.name), ...track.artistContribs.map(contrib => contrib.artist.aliasNames) ].flat(), + additionalNames: track.additionalNames.map(entry => entry.name), + + artworkKind: + (track.hasUniqueCoverArt + ? 'track' + : track.album.hasCoverArt + ? 'album' + : 'none'), }) ); |