aboutsummaryrefslogtreecommitdiff
path: root/playlist.go
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.go')
-rw-r--r--playlist.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/playlist.go b/playlist.go
index 049354e..c11843e 100644
--- a/playlist.go
+++ b/playlist.go
@@ -72,6 +72,12 @@ func (pl *Playlist) OrderedList() []*Song {
songs = append(songs, heap.Pop(&cpy).(*Song))
}
+ // TODO: Use more efficiently traversable data structure
+ llog.DDebug("fix song indices in pl")
+ for i, s := range *pl {
+ s.index = i
+ }
+
llog.DDebug("ordering queue %v returned %v", pl, songs)
return songs
}