INTERACT FORUM

More => Old Versions => JRiver Media Center 20 for Windows => Topic started by: jondavis on February 11, 2017, 08:44:07 pm

Title: help with code - remove artist from name field
Post by: jondavis on February 11, 2017, 08:44:07 pm
So I have a bunch of files that look sorta like this
Name:                                Artist:
Bon Jovi Runaway               Bon Jovi

Is there a way to do the code to remove the artist and leave just the name of the song (in the name field)?
Title: Re: help with code - remove artist from name field
Post by: blgentry on February 11, 2017, 08:50:13 pm
Sure.  I just did a test and this seems to work.  Highlight the tracks, open the tagging window, and paste this expression into the [Name] field:

Code: [Select]
=replace([Name],[Artist],)
That will likely leave you with the correct name of the song, but it will have a space as the first character.  If it does, you can use "clean file properties" and use the "remove leading and trailing spaces" check box to remove that space.

Try this on ONE SONG first.  If it works, try an album.  If that works, try more.

Good luck!

Brian.
Title: Re: help with code - remove artist from name field
Post by: jondavis on February 11, 2017, 08:58:37 pm
yea that work thanks
I'm sure I can find a code to remove a space
Thanks!
Title: Re: help with code - remove artist from name field
Post by: jondavis on February 11, 2017, 09:01:56 pm
And just found the clear properties that I never used before and got rid of the space.
nice
Title: Re: help with code - remove artist from name field
Post by: blgentry on February 11, 2017, 09:08:41 pm
...and now you have evidence of why MC is the greatest media library manager ever created.

Glad you got your problem solved.  ...and learned a new tool or two in the bargain. :)

Brian.