add TODO comment for scrobbling when removing currently playing track

This commit is contained in:
Drew Weymouth
2023-02-11 13:27:29 -08:00
parent 91a8b0d9b7
commit ffef55090a
+2
View File
@@ -180,6 +180,8 @@ func (p *PlaybackManager) RemoveTracksFromQueue(trackIdxs []int) {
for i, tr := range p.playQueue { for i, tr := range p.playQueue {
if rmIdx < len(trackIdxs) && trackIdxs[rmIdx] == i { if rmIdx < len(trackIdxs) && trackIdxs[rmIdx] == i {
// removing this track // removing this track
// TODO: if we are removing the currently playing track,
// we need to scrobble it if it played for more than the scrobble threshold
rmIdx++ rmIdx++
if err := p.player.RemoveTrackAt(i - rmCount); err == nil { if err := p.player.RemoveTrackAt(i - rmCount); err == nil {
rmCount++ rmCount++