Page 1 of 1

Swap out a path

Posted: November 26th, 2019, 7:12 pm
by kdubious
Hello. New to MPD development, so please be nice.

I'm implementing a front end (queue) for several online audio services. Everything works great except that the URL I get for the track has a lifespan. So, from time to time, I need to run through the queue and update the URL for the tracks to their new (not-yet-expired) URLs.

It would be easier for me to do this swap, rather than remove the track and add a new track in its place (I think), because I'm keeping some metadata in Redis based on the Song's ID.

Does this feature exist? If not, can anyone point me to the code files I should look at for trying to build this feature / command?


Kevin