INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Linux => Topic started by: davidw55 on March 27, 2019, 01:28:04 pm

Title: Album-view Expression mis-behavior on Linux but not Windows
Post by: davidw55 on March 27, 2019, 01:28:04 pm
Hi there

Using MC 24.0.78 Linux Mint

Playing with an expression to augment my Album names with something, either Compression or Bitrate or something. 

I'm doing this (just an experiment)

     if (isempty([Album],[Album],[Album]-[Compression])

(you can guess why)

The expression seems to run but MC doesn't display the result of evaluated expression, but instead displays the expression itself.  I get album names that look roughly like

    if (0,"Greatest Hits","Greatest Hits ALAC")

P.S.  If I put this same expression into MC 24 on Windows, it does what I expect it to do. i.e. display the evaluated result of the expression.

This looks like a JMRC Linux defect but perhaps I'm breaking a rule that just fails differently on each platform.

Advice appreciated

Dave

Title: Re: Album-view Expression mis-behavior on Linux but not Windows
Post by: BryanC on March 27, 2019, 02:09:43 pm
You are missing a closing parenthesis in your expression and you need to kill the space after if.

Code: [Select]
if(isempty([Album]),[Album],[Album]-[Compression])
Also, you probably want to check if the Compression tag exists, instead of Album (that is superfluous and could be done with IfElse).

Code: [Select]
if(isempty([Compression]),[Album],[Album]-[Compression])
Title: Re: Album-view Expression mis-behavior on Linux but not Windows
Post by: davidw55 on March 27, 2019, 02:57:32 pm
The missing parenthesis was a typo when posting here, but the space after the if wasn't. Removing the space fixed the problem.

Thank you.