After a few experiments here are the results. I used your exact line and only changed the %aunique{}
field, I left single quotes.
- With:
%aunique{albumartist album year, label catalognum}
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand [237] [MP3]/01-01. Jacqueline
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand [678] [MP3]/01. Jacqueline
- With
%aunique{albumartist album year, label catalognum, "{}"}
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 237"} [$format]%if{$multidisc,$disc-}$track. $title
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 678"} [$format]%if{$multidisc,$disc-}$track. $title
- With:
%aunique{albumartist album year, label catalognum, [] }
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 237 [MP3]/01-01. Jacqueline
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 678 [MP3]/01. Jacqueline
- With
%aunique{albumartist album year, label catalognum, () }
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 237 [MP3]/01-01. Jacqueline
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 678 [MP3]/01. Jacqueline
- With
%aunique{albumartist album year, label catalognum, {} }
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 237{ } [$format]/%if{$multidisc,$disc-}$track. $title
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 678{ } [$format]/%if{$multidisc,$disc-}$track. $title
I also tried using this line:
$ beet ls -f '$albumartist/$albumartist - $album%aunique{albumartist album year, label catalognum, {} } - $track'
but the result isn’t encouraging:
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 237{} - $track
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 678{} - $track
Moreover it seems in some cases the unique isn’t necessary at all, for example I do have also a FLAC version of this album, but
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 237 [MP3]/01-01. Jacqueline
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 678 [MP3]/01. Jacqueline
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand 679 [FLAC]/01-01. Jacqueline
The field still gets populated (with 679
in this case). I’m guessing that this happens because the $format
is used after %aunique{}
?
To try and solve it I also tried using something %aunique{albumartist album year format}
but I got:
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand<no such column: format> [MP3]/01-01. Jacqueline
As a second side note, all formats with %aunique{}
and using beet ls -a
results in something like:
Franz Ferdinand/Franz Ferdinand - Franz Ferdinand<no such field 'album_id'> [$format]$disc-$track. $title