mpdisco icon indicating copy to clipboard operation
mpdisco copied to clipboard

Fatal error while cover image file lookup

Open rafi opened this issue 10 years ago • 0 comments

As soon as I browse to mpdisco and the interface loads, node crashes with:

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/Users/rafi/music/Antony_and_the_Johnsons/The_Crying_Light/front.jpg'
    at Error (native)

Seems like mpdisco expects a certain directory/file structure of one's music library, e.g.:

$ mpc -f '%artist%/%album%' find artist 'The Beatles' album Love | head -n1
The Beatles/Love

Instead, mpdisco should query MPD for the real path, e.g.:

$ mpc -f '%file%' find artist 'The Beatles' album Love | head -n1
Beatles, The/2006 Love/01 Because.mp3

rafi avatar Jul 10 '15 08:07 rafi