diff options
author | Florrie <towerofnix@gmail.com> | 2020-06-06 18:40:05 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2020-06-06 18:40:05 -0300 |
commit | 0cd7e34d0fa2fe019a37472bd2ecf14db05f63fb (patch) | |
tree | c1078ad7d5525930f97e17c9b3156072b4be3af3 /common.js | |
parent | 6592c70fd5143808b1c238a8ace9038baae599ef (diff) |
loads of code shenanigans
Diffstat (limited to 'common.js')
-rw-r--r-- | common.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/common.js b/common.js index 208e33b6..505cfb83 100644 --- a/common.js +++ b/common.js @@ -70,11 +70,6 @@ const C = { // sorted 8y date. getAllTracks: albumData => C.sortByDate(albumData.reduce((acc, album) => acc.concat(album.tracks), [])), - getArtistNames: (albumData, flashData) => Array.from(new Set([ - ...albumData.reduce((acc, album) => acc.concat((album.coverArtists || []).map(({ who }) => who), album.tracks.reduce((acc, track) => acc.concat(track.artists, (track.coverArtists || []).map(({ who }) => who)), [])), []), - ...flashData.filter(flash => !flash.act8r8k).reduce((acc, flash) => acc.concat(flash.contributors.map(({ who }) => who)), []) - ])), - getKebabCase: name => name.split(' ').join('-').replace(/&/g, 'and').replace(/[^a-zA-Z0-9\-]/g, '').replace(/-{2,}/g, '-').replace(/^-+|-+$/g, '').toLowerCase(), // Terri8le hack: since artists aren't really o8jects and don't have proper |