INTERACT FORUM

More => Old Versions => Media Jukebox => Topic started by: Leito on February 27, 2013, 12:26:54 pm

Title: Can I remove a specified text using expression language?
Post by: Leito on February 27, 2013, 12:26:54 pm
I have several tracks that have a [Name] equal to "Artist - Title" ("Artist" is not the same on all tracks). I would like to remove the "Artist - " part of the [Name]. Is there any way I could do it using expression language?
Title: Re: Can I remove a specified text using expression language?
Post by: MrC on February 27, 2013, 12:45:56 pm
You can update Name anywhere you edit a tag by entering:

  =listitem([Name], 1, / -/ )

Add the expression to an expression column to test it first if you want.
Title: Re: Can I remove a specified text using expression language?
Post by: Leito on February 27, 2013, 03:27:24 pm
=listitem([Name], 1, / -/ )

Thanks, works really great! :)

I didn't think to look into the List Manipulation (http://wiki.jriver.com/index.php/Media_Center_expression_language#List_Manipulation) section of the wiki, that's good to know that those functions works also with simple fields.