Skip to content

Commit

Permalink
filter out instrumentals if not specifically recommended
Browse files Browse the repository at this point in the history
  • Loading branch information
LumePart committed Oct 27, 2024
1 parent f9b727e commit c4ea9d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ func filter(track Track, videoTitle string) bool { // ignore artist lives or son
return false
}

if (!contains(track.Title,"instrumental") && !contains(track.MetadataArtist,"instrumental") && contains(videoTitle, "instrumental")) {
return false
}

return true
}

Expand Down

0 comments on commit c4ea9d9

Please sign in to comment.