chore: now playing skip conditions

This commit is contained in:
Cory Dransfeldt 2023-10-26 16:14:36 -07:00
parent a34dbaeef2
commit f5b480e195

View file

@ -35,6 +35,15 @@ const aliasArtist = (artist) => {
const sanitizeTrack = (track) => { const sanitizeTrack = (track) => {
let sanitizedTrack = track let sanitizedTrack = track
if (
!track.includes('Deluxe') ||
!track.includes('Special') ||
!track.includes('Remastered') ||
!track.includes('Full Dynamic') ||
!track.includes('Expanded') ||
!track.includes('Bonus Track')
)
return sanitizedTrack
if (track.includes(' [')) sanitizedTrack = track.split(' [')[0] if (track.includes(' [')) sanitizedTrack = track.split(' [')[0]
if (track.includes(' (')) sanitizedTrack = track.split(' (')[0] if (track.includes(' (')) sanitizedTrack = track.split(' (')[0]
return sanitizedTrack return sanitizedTrack