mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Resize if requested
This commit is contained in:
parent
7b87386089
commit
213ceeca78
6 changed files with 163 additions and 36 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue