]> git.draconx.ca Git - mpdhacks.git/commit
mpdreload: Fix batch deletion when there are still loads pending.
authorNick Bowler <nbowler@draconx.ca>
Sun, 3 Jan 2021 21:12:49 +0000 (16:12 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 5 Jan 2021 03:32:07 +0000 (22:32 -0500)
commitf0e74c3a1fc44153fe80961ff7de3b4a0786e5ea
treeba803e3940acef7920a94837fb69d1d31f8bcbdc
parent9913010f15f1fb7a3f331e655592fa6fc2807a12
mpdreload: Fix batch deletion when there are still loads pending.

The batch deletion did not take into account the possibility that
some or all of the playlist may still need to be loaded afterwards
(this happens when there are tracks at the end of the target playlist
which are not in the current play queue).

This resulted in erroneous operation.  Fix that up.

And separate the batch loading into a separate routine to hopefully
clarify what the various track indices are so future me understands.
mpdreload.pl