From: Nick Bowler Date: Sun, 3 Jan 2021 21:12:49 +0000 (-0500) Subject: mpdreload: Fix batch deletion when there are still loads pending. X-Git-Url: https://git.draconx.ca/gitweb/mpdhacks.git/commitdiff_plain/f0e74c3a1fc44153fe80961ff7de3b4a0786e5ea?hp=f0e74c3a1fc44153fe80961ff7de3b4a0786e5ea 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. ---