Re: [mpd-devel] find command with albumartist type

2018-03-19 Thread Max Kellermann
On 2018/03/17 15:42, Geoff  wrote:
> Then I thought it should not return any track on my library since
> "Boards of Canada"/"SKA008" is not tagged with albumartist.
> 
> The tracks for this album only contains plain tags:
[...]
> Did I misunderstood the protocol regarding find command?

Can this really be misunderstood?

 '"AlbumArtist" falls back to just "Artist"'
 https://www.musicpd.org/doc/protocol/database.html
___
mpd-devel mailing list
mpd-devel@musicpd.org
http://mailman.blarg.de/listinfo/mpd-devel


[mpd-devel] find command with albumartist type

2018-03-19 Thread Geoff
Hi,

I stumbled upon a behavior I don't understand, here it is.

8<---
printf 'find albumartist "Boards of Canada" album "SKA008"\nclose\n' | \
nc localhost 6600 | \
awk -F: 'tolower($1) ~ /^(albumartist|file)$/'
>8---

I'm expecting to fetch all tracks with the exact match on albumartist =
"Boards of Canada" and album = "SKA008".

Then I thought it should not return any track on my library since
"Boards of Canada"/"SKA008" is not tagged with albumartist.

The tracks for this album only contains plain tags:

8<---
printf 'find albumartist "Boards of Canada" album "SKA008"\nclose\n' | \
nc localhost 6600 | \
awk -F: '!seen[$1]++ { print $1 }'

OK MPD 0.19.0
file
Last-Modified
Time
Artist
Title
Album
Genre
OK
>8---

Did I misunderstood the protocol regarding find command?

Cheers
Geoff
___
mpd-devel mailing list
mpd-devel@musicpd.org
http://mailman.blarg.de/listinfo/mpd-devel