MPD icon indicating copy to clipboard operation
MPD copied to clipboard

Loaded playlist name ?

Open XpamAmAdEuS opened this issue 4 years ago • 3 comments

Can we see name of the last loaded playlist? I have some kind of plugin that load playlists by date/code/name every day. I cannot know name of playlist currently loaded into mpd.

XpamAmAdEuS avatar Aug 08 '20 20:08 XpamAmAdEuS

No. How is that supposed to work? Let's say I send load a, load b and add a few songs to the queue and then remove a few - what will MPD tell you which playlist is loaded? Because it's a combination of "a", "b" and some manual changes.

MaxKellermann avatar Aug 14 '20 12:08 MaxKellermann

Just an idea: add a new property "queue_title" to the player queue. Set this to the playlist name when loaded and clear it when the queue is changed. The "queue_title" will be included in the status response. Optionally add commands to set and clear the queue title so clients can set it not only when loading a playlist.

geneticdrift avatar Aug 16 '20 08:08 geneticdrift

Just an idea: add a new property "queue_title" to the player queue. Set this to the playlist name when loaded and clear it when the queue is changed. The "queue_title" will be included in the status response. Optionally add commands to set and clear the queue title so clients can set it not only when loading a playlist.

Great idea. For my needs its ok if it returns last loaded playlist name becouse i must always start with clear queue. But command for set name its great idea. Even better if we can set additional infos like datetime added.

XpamAmAdEuS avatar Aug 19 '20 11:08 XpamAmAdEuS