chore: now playing skip conditions
This commit is contained in:
parent
a34dbaeef2
commit
f5b480e195
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue