Resize if requested

This commit is contained in:
Deluan 2022-12-19 17:07:29 -05:00 committed by Deluan Quintão
parent 7b87386089
commit 213ceeca78
6 changed files with 163 additions and 36 deletions

View file

@ -46,7 +46,7 @@ func (pls Playlist) MediaFiles() MediaFiles {
func (pls *Playlist) RemoveTracks(idxToRemove []int) {
var newTracks PlaylistTracks
for i, t := range pls.Tracks {
if slices.Index(idxToRemove, i) >= 0 {
if slices.Contains(idxToRemove, i) {
continue
}
newTracks = append(newTracks, t)