INTERACT FORUM

Please login or register.

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

Author Topic: Large-scale tag editing question  (Read 3284 times)

stumpygremlin

  • World Citizen
  • ***
  • Posts: 121
Large-scale tag editing question
« on: July 22, 2011, 04:36:58 pm »

Right now, I have my album listed as "[album] ([label], year)", all under the album section of the tag. I'd like to move the label to the comment section and the year to the year section.

What's the easiest way to do this on a large scale?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Large-scale tag editing question
« Reply #1 on: July 22, 2011, 05:25:47 pm »

You can use MC's expression language to pull / parse pieces from your album tag.

You'll want to do this in 3 stages: first, grab the label field, then the year field, and finally you can redefine the album field.

To grab the label, you can use the expression:

   =listitem(listitem([album],1, /(),0,/, )

To grab the year, use the expression:

   =removeright(right([album],5),1)

And finally, to pull out the album portion of your existing album tag, use:

   =listitem([album],0, /()

Select the files for which you want to change tags.

Go to the Comment field in the action window, select it to edit, and enter the first expression above.  Copy and paste exactly as it is from the = to the final paren.  When you hit Enter, you should see the value you desire.

Next, go to the Year field in the action window, and do likewise using the second expression.

Finally, you can now change the album field, removing the stuff you've moved to other fields.   Use the third expression to do this.

Try this on one or two files to ensure it works as you expect.

Edit: it is not clear to me if you actually have square brackets around your album and label; if so, reply and I'll update the expressions to accommodate.
Edit: fixed the third expression which grabbed the second list item rather than the first.
Logged
The opinions I express represent my own folly.

stumpygremlin

  • World Citizen
  • ***
  • Posts: 121
Re: Large-scale tag editing question
« Reply #2 on: July 22, 2011, 05:34:43 pm »

The first two worked great.

The last one, when I put it into the album field, showed "[label], [year])"
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Large-scale tag editing question
« Reply #3 on: July 22, 2011, 05:38:25 pm »

Oops, sorry.  Replace the 1 with a 0.

I'll update it.

MC stole the focus from my edit during an update notification, and I forgot to re-copy the expression.
Logged
The opinions I express represent my own folly.

stumpygremlin

  • World Citizen
  • ***
  • Posts: 121
Re: Large-scale tag editing question
« Reply #4 on: July 22, 2011, 05:42:25 pm »

MrC, you are AWESOME!
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72444
  • Where did I put my teeth?
Re: Large-scale tag editing question
« Reply #5 on: July 22, 2011, 05:46:51 pm »

+1
Logged
Pages: [1]   Go Up