INTERACT FORUM

Please login or register.

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

Author Topic: Retrieving a specific tag from a music file  (Read 806 times)

DangerJP

  • World Citizen
  • ***
  • Posts: 123
Retrieving a specific tag from a music file
« on: May 01, 2012, 07:43:33 am »

Hi,

The structure of my music files looks like this:
C:/Music/[Album Artist]/[Album] [[Year], [Publisher]].

I'm currently moving my music library from Winamp to MC.
In Winamp, the [Publisher] field has been edited for all my files. Using dBPowerAmp to inspect the tags of a specific file, I can confirm that the Publisher tag is properly assigned.

If I import any file into MC, the [Publisher] field is empty because it seems that MC associates the [Publisher] field with the Label tag. At the moment, this tag is unassigned for all my files.

Is there a way to automatically retrieve my previously edited Publisher tags and assign them to the [Publisher] field / Label tag of MC ?

I assumed that since this information is available in both the file path and the file tags, it should be an easy task, but I haven't found a solution yet.

Thanks !
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Retrieving a specific tag from a music file
« Reply #1 on: May 01, 2012, 12:39:38 pm »

Easiest way, once you have the files imported into MC, select the files, open Action Window > Tag, and click-to-edit the Publisher field.  Now enter:

   =regex([Filename (path)], /#\[[^,]+,\s([^\]]+)\]\\$#/, 1)

and press return to accept.  This will assign [Publisher] as pulled from your folder name (so long as it basically follows the template you've specified).  You can use Undo if this doesn't assign what you want.
Logged
The opinions I express represent my own folly.

DangerJP

  • World Citizen
  • ***
  • Posts: 123
Re: Retrieving a specific tag from a music file
« Reply #2 on: May 01, 2012, 05:00:05 pm »

Thanks MrC !

It works perfectly !

Logged
Pages: [1]   Go Up