INTERACT FORUM

More => Old Versions => Media Center 17 => Topic started by: DangerJP on May 01, 2012, 07:43:33 am

Title: Retrieving a specific tag from a music file
Post by: DangerJP 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 !
Title: Re: Retrieving a specific tag from a music file
Post by: MrC 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.
Title: Re: Retrieving a specific tag from a music file
Post by: DangerJP on May 01, 2012, 05:00:05 pm
Thanks MrC !

It works perfectly !