]> git.draconx.ca Git - mpdhacks.git/commit
mpdreload: Protocol optimizations.
authorNick Bowler <nbowler@draconx.ca>
Fri, 19 Jun 2020 05:01:39 +0000 (01:01 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 19 Jun 2020 05:01:39 +0000 (01:01 -0400)
commite31f68d79d01f8a497ca1e98b3dc1a57198cfba9
tree9c329c90807bbf56b825358672073a880de50641
parentf1a45f3dd740c5b55cd44ff09548d49791191863
mpdreload: Protocol optimizations.

Try harder to send fewer commands to the MPD server.  In particular:

* We can submit commands to batch-load subranges from the target
  playlist into the play queue, then move them as a group into the
  final location.

* We don't need to send move commands for tracks that are already in
  the correct final position, which helps when reloading a playlist
  very similar to the current play queue.

* By arranging for all unwanted tracks to be shifted to the end of
  the play queue during the consolidation process, these can all be
  deleted with a single command.
mpdreload.pl