INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: help with code - remove artist from name field  (Read 3830 times)

jondavis

  • World Citizen
  • ***
  • Posts: 126
help with code - remove artist from name field
« 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)?
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: help with code - remove artist from name field
« Reply #1 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.
Logged

jondavis

  • World Citizen
  • ***
  • Posts: 126
Re: help with code - remove artist from name field
« Reply #2 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!
Logged

jondavis

  • World Citizen
  • ***
  • Posts: 126
Re: help with code - remove artist from name field
« Reply #3 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
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: help with code - remove artist from name field
« Reply #4 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.
Logged
Pages: [1]   Go Up