dmix icon indicating copy to clipboard operation
dmix copied to clipboard

Unexpected 'local%3Atrack%3A' in every GET request for local album art

Open whumann opened this issue 10 years ago • 3 comments

I set up nginx to serve local album art as suggested here https://github.com/abarisain/dmix/wiki/Album-Art-on-your-LAN and set the 'Musikverzeichnis' setting in MPDroid to 'cover-art' but none would be loaded. When I checked "/var/log/nginx/access.log", I found that every GET request has an unexpected 'local%3Atrack%3A' inserted like this:

"GET /cover-art/local%3Atrack%3AKlassik/WO_2/folder.jpg HTTP/1.1"

Is that expected and I need to update the nginx config accordingly or did I configure MPDroid wrong in some way?

whumann avatar Dec 29 '15 18:12 whumann

​Can you paste your Nginx config? I believe your music path may be wrong.​

On Tue, Dec 29, 2015 at 1:09 PM, whumann [email protected] wrote:

I set up nginx to serve local album art as suggested here https://githubcom/abarisain/dmix/wiki/Album-Art-on-your-LAN and set the 'Musikverzeichnis' setting in MPDroid to 'cover-art' but none would be loaded When I checked "/var/log/nginx/accesslog", I found that every GET request has an unexpected 'local%3Atrack%3A' inserted like this:

"GET /cover-art/local%3Atrack%3AKlassik/WO_2/folderjpg HTTP/11"

Is that expected and I need to update the nginx config accordingly or did I configure MPDroid wrong in some way?

— Reply to this email directly or view it on GitHub https://github.com/abarisain/dmix/issues/787.

ranperry avatar Dec 29 '15 18:12 ranperry

Well I can: "/etc/nginx/sites-available/mpd-cover-art.conf" looks like this

    server {
        listen 80;
        server_name 192.168.178.28;

        location /cover-art/ {
            root /mnt/usbstorage/Audio;
            rewrite /cover-art/(.*) /$1 break;
            try_files $uri $uri;
            allow   192.168.178.0/24;
            deny    all;
        }
    }

But I don't think that's the problem. The unexpected string comes from MPDroid. If I ask my webbrowser for http://192.168.178.28/cover-art/Klassik/WO_2/folder.jpg it does show the image and nginx access.log says: "GET /cover-art/Klassik/WO_2/folder.jpg HTTP/1.1"

whumann avatar Dec 29 '15 18:12 whumann

What mpd server are you using? I had the same issue when using mopidy. The "local:track:" was added by the server to the album address. With the normal mpd server it works.

tobag90 avatar Jan 31 '16 21:01 tobag90