Post Reply 
Empty AlbumArtist & displayFormat
05-09-2025, 11:37
Post: #1
Empty AlbumArtist & displayFormat
Hello everybody...

My own tagging convention is:

(a) for CD with single AlbumArtist, e.g. "Keith Jarrett Trio – Still Live"
. Artist='Keith Jarrett Trio'
. Album='1988 • Still Live'
. AlbumArtist='Keith Jarrett'
(that is: the "main artist" of the album)

(b) for CD with Various Artists, e.g. "Soleluna Beach, Vol.2"
. Artist=<current track artist>
. Album='2001 • Soleluna Beach, Vol.2'
. AlbumArtist=''
(that is: no value at all)

Since I have this tagFormat:
. Album.displayFormat={$AlbumArtist$Album$OwnedLabel^^^ • }

when I browse [folder view]/albums, I see:
(a) 'Keith Jarrett • 1988 • Still Live'
(b) '2001 • Soleluna Beach, Vol.2'

case (a) is ok, but for case (b) I'll like to see:
(b) 'VV AA • 2001 • Soleluna Beach, Vol.2'
without phisically, or virtually, fixing the empty AlbumArtist tag.

And I do mean:
except for the Album.displayFormat() need, the AlbumArtist value,
when the album is "Various Artists" type, *MUST* stay empty.


I think I need something like:
. Album.displayFormat={isnull($AlbumArtist, 'VV AA')$Album$OwnedLabel^^^ • }

but displayFormat() doesn't seem to support a syntax like that.


Any suggestion?

Thank you
Giovanni, from Italy
Find all posts by this user
Quote this message in a reply
05-09-2025, 12:27
Post: #2
RE: Empty AlbumArtist & displayFormat
You can do this by creating a new tag whose value is populated from AlbumArtist if present or with the literal value 'VV AA' if there is no AlbumArtist value.

itemTags: add AlbumArtistDisplay
tagValue: AlbumArtistDisplay.default={AlbumArtist, 'VV AA'}
tagFormat: Album.displayFormat={$AlbumArtistDisplay$Album$OwnedLabel^^^ • }
Find all posts by this user
Quote this message in a reply
05-09-2025, 13:36
Post: #3
RE: Empty AlbumArtist & displayFormat
Thank you, Simon
that's exactly what I was looking for.

Giovanni, from Italy
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)