MinimServer Forum
Artist Tag If No AlbumArtist Tag? - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Artist Tag If No AlbumArtist Tag? (/showthread.php?tid=6294)



Artist Tag If No AlbumArtist Tag? - Rasmussen - 10-08-2021 22:53

Here's my album display format tag:

Code:
Album.displayFormat={$albumartist^^ / ^$album^$date^ (^)}

Question: Is it possible to re-write this so that MinimServer includes the Artist tag if (and only if) there is no AlbumArtist tag?

TIA


RE: Artist Tag If No AlbumArtist Tag? - simoncn - 11-08-2021 09:54

You can use the tagValue property to do this.

1) Add a new tag to itemTags, for example ArtistFormat
2) Set tagValue to ArtistFormat.default={AlbumArtist, Artist}
3) Change your tagFormat settting to: Album.displayFormat={$artistformat^^ / $album^$date^ (^)}

Note the slight change to your format string to improve the formatting for albums with mutliple artists.