Updates to MPDQ (automagic playlists for the Music Player Daemon)1 min read

I was pretty happy with my rewrite ofmpdq and the way it queues music… but there was something missing.

Specifically, the ability to easily pause it.

So I added that functionality. Now,mpdq will automatically pause if MPD is not set to:

  • random: off
  • repeat: off
  • consume: on

So if you want to have “default” behavior back from MPD without interference from mpdq, but want to leave the process running, just toggle any of those values for MPD.

Additionally, I wanted it to be able to adjust to library changes – say, if you added a new genre. I realized this after adding a bunch of standup albums with the new genre “Standup” and suddenly had Steven Wright talking after “Love Will Tear Us Apart”. To fix this possible problem, you first have to set Default=0 in the instruction file loaded by systemd. Then you have to have mpdq get restarted whenever the MPD database changes. You can either use monit or fswatch to make this happen. Instructions and examples for doing so are part of the README.

You can pick it up and try it out on github, gitlab, or my git repository.

Featured Photo by Eric Nopanen on Unsplash

Was this post helpful or insightful? Buy me a coffee here or here and share this post with others!

Popular posts:

  • The difference between boundaries and rules
  • Review: MAFA - MPD client for Android
  • If there's one Nazi (or a racist) at the table...
  • Weekend Project: Whole House and Streaming Audio for Free with MPD
  • Organizing and Tiling Your Windows on #Openbox Using Only... Openbox
  • Getting the Weather And Forecast with A Bash Script

Recent Posts