Author Topic: Layout of the Various Artists albums in Albums view with empty virtual tag value  (Read 751 times)

Acoustics

  • Jr. Member
  • **
  • Posts: 56
Hi,

Not really a bug, but I think an inconsistency.

In the Albums view, I use two virtual tags (V_SinglesTitle and V_SinglesComment) to change the layout of a specific custom compilation album where I put all the 'orphans' singles. This album has as album artist = 'Various Artists' and as album name = '(Singles)'.



My goal is to not change the default layout for the regular albums, and for the regular compilation albums (where Album Artist = 'Various Artists' but Album name is NOT '(Singles)').

So here are the formula for the two tags:

V_SinglesTitle:
Code
$If(<Album Artist>="Various Artists",$If(<Album>="(Singles)",[<Artist>"]   "{font: Segoe UI Semibold;Regular;10}<Title>,<Title>),<Title>)

V_SinglesComment
Code
$If(<Album Artist>="Various Artists",$If(<Album>="(Singles)"," ("<Original Album>" - "<Original Year>"),),)
So, for this specific album only, V_SinglesComment adds a second line below the track title to display the album and the year from which the track comes. Otherwise it returns an empty value.


The result is as expected for the regular not Various Artists albums , the layout is not changed by the virtual tags. Because the result of the V_SinglesComment formula is empty the second line is not displayed:




But the result is not exactly as expected for the regular compilation albums where Album Artist = 'Various Artists' but Album name is NOT 'Singles'. Again, my wish is to keep the default layout.

The default layout:



The result:


So even if the result of the V_SinglesComment formula is empty as well, the second line is here displayed. So this is the problem, this is not consistent with the regular - not Various Artists - albums.

(as a side effect, when a second line is added in a 'Various Artists' album MB removes [Artist] on the right of the title to put it in the second line. I understand this behavior, as it permits to customize the layout. But here, I want to point out that the second line should not be displayed at all (and consequently the layout should not be changed) when the virtual tag formula returns an empty value).
Last Edit: January 20, 2023, 12:14:54 PM by Acoustics


Acoustics

  • Jr. Member
  • **
  • Posts: 56
Glad this has already been pointed out.
Last Edit: January 21, 2023, 09:31:37 AM by Acoustics