Nick Bowler [Fri, 28 Jun 2019 00:01:41 +0000 (20:01 -0400)]
mpdmenu: Factor out thumbnail generation.
Prep work for making use of MPD albumart, move all calls to the
thumbnailer into a single function, and adapt the menus to call
the function once to generate an entire list of cover art.
Drop the use of the --image option in the thumbnailer by poking at
the cover art directly, since this will no longer work with MPD
albumart.
Nick Bowler [Thu, 27 Jun 2019 23:02:38 +0000 (19:02 -0400)]
Relicense MPD scripts.
It's the dawn of a new era. I'm separating these scripts from my FVWM
configuration in preparation for some big overhauls. Going forward,
as these are basically standalone programs in their own right we'll
be using the GNU General Public License.
(Leave thumbnail.zsh alone because the first order of business is to
kill it off).
Nick Bowler [Sat, 20 Apr 2019 00:22:32 +0000 (20:22 -0400)]
MPD script updates.
Fix compatibility with latest perl which removes the 'encoding' pragma.
And improve mpdexec.pl to be a bit more flexible: command-line arguments
will be correctly quoted for MPD, and also add a mode to accept commands
on standard input which helps performance with long command sequences.
Nick Bowler [Fri, 20 Oct 2017 01:39:17 +0000 (21:39 -0400)]
thumbnailer: Follow only one level of symbolic link.
Since my music is all in git annex now, the thumbnailer follows the
cover art symlinks all the way to the annex object directory. This is
less than helpful, since the intention was to locate the album scan
directory. Change the --image mode to just read the link once and
then stop.