]> git.draconx.ca Git - mpdhacks.git/commit
mpdthumb: Fix failure when readpicture/albumart both return data. master
authorNick Bowler <nbowler@draconx.ca>
Thu, 10 Feb 2022 01:00:49 +0000 (20:00 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 10 Feb 2022 01:00:49 +0000 (20:00 -0500)
commit4464a71e9bee10cfccfaf652d20c688b13cad11d
tree247116615f9906b7916cbb6d2f2416570ff04d49
parentcf01843ff6c5491815e125201767c14ac05b37ca
mpdthumb: Fix failure when readpicture/albumart both return data.

If a file has both embedded cover art and cover art in its directory,
both commands will return data and mpdthumb prints two lines instead
of one as expected.  Fix this by skipping the check for albumart data
if valid readpicture data was returned.
mpdthumb.sh