On 2009/03/16 22:06, Mario Lenz <m@...> wrote:
> On 2009/03/16 19:40, Max Kellermann <max@...> wrote:
>
> > There's one issue: if there is a TITLE tag before TITLE1,
> > then MPD will use both.
>
> Yep, I know. This is true for every other tag, too. But I thought a
> quick'n'dirty hack *now* would be better than a proper solution some
> vague time in the future :-)
Agree. Your patch is an improvement, and this problem is not a
regression - it will not break older setups.
> > Which other projects do use this method?
>
> I've just started to archive some of my music this way, that is one big
> flac file with an embedded cue sheet per CD. When I was looking for a
> tagging scheme, I found one with the track number directly attached
> (TITLE1) and one written like an array (TITLE[1]).
>
> Now that I'm looking for it, I can't find the scheme I've used. Probably
> it's been used by some project that isn't active any more :-/
>
> Anyway, the $TAGNAME[$TRACKNUMBER] scheme seems to be supported by at
> least two relatively well-known programs, foobar2000 and SlimServer.
> If you want me to, I'll send you another patch to make mpd support this
> scheme instead of the other one.
There doesn't seem to be an "official" standard. I'd say: search for
TITLE[1] first (the most explicit form), then TITLE1, and finally fall
back to TITLE. This makes sure MPD supports every possible standard,
without breaking.
Max
|