Page 1 of 1

Summary Format for Player [#17394]

Posted: Sat Jan 16, 2021 1:25 pm
by MPG
Hi,
I'm trying to format the text on the player to use the following logic
If genre = Top 100
Year - Artist - Title
Otherwise
Artist - Album (Year) - Track# - Title

This is my current logic
$if(<Genre>=Top 100, <Year> - <Artist> - <Title>, <Artist> - <Album> (<Year>) - <Track#:2> - <Title>)

It works for genre = "top 100, the other songs come up with:
Artist - Album (Year - track# - Title)

I have tried a variety of options with no success. Can you help?

Re: Summary Format for Player

Posted: Sat Jan 16, 2021 2:59 pm
by Lowlander
I see it too: https://www.ventismedia.com/mantis/view.php?id=17394

Code: Select all

$if(<Genre>=Top 100, <Year> - <Artist> - <Title>, <Artist> - <Album> (<Year>)) - <Track#:2> - <Title>)

gets you a little closer for now, or

Code: Select all

$if(<Genre>=Top 100, <Year> - <Artist> - <Title>, <Artist> - <Album> [<Year>] - <Track#:2> - <Title>)

Re: Summary Format for Player [#17394]

Posted: Sat Jan 16, 2021 3:03 pm
by MPG
Thanks Lowlander.

I tried using escape characters and the chr function with no luck as well. Thanks for creating the issue.

Re: Summary Format for Player [#17394]

Posted: Wed Oct 06, 2021 2:47 am
by jiri
Hi, the correct mask should look like

Code: Select all

$if(<Genre>=Top 100, <Year> - <Artist> - <Title>, <Artist> - <Album> (<Year>$) - <Track#:2> - <Title>)
i.e. prepend the '$' character.

Jiri

Re: Summary Format for Player [#17394]

Posted: Wed Oct 06, 2021 2:22 pm
by MPG
Solution tested & Verified!

Thanks Jiri!

Re: Summary Format for Player [#17394]

Posted: Thu Nov 04, 2021 8:23 pm
by Peke
Hi,
FYI for reference all is explained under $IF at https://www.mediamonkey.com/wiki/WebHel ... _Reference