Tags by filenames window

 

 

You can use this window if you want to parse group of filenames and use their parts to assign to fields of tags.

 

 

 

The Pattern edit line is the main. Here you should type a pattern that will be used to parse filenames. In the pattern you can use ordinary strings and placeholders.

The program looks in a filename for a part that is totally fit the pattern and then it parses found part to fill placeholders.

 

 

Example:

You have a filename that looks like:

Mike – Here I am - 2008.mp3

Use pattern:

%A - %T - %Y

An you will get:

Artist = Mike
Title = Here I am
Year = 2008

Use pattern:

%Ae - %_ %T

And you will get:

Artist = Mik
Title = I am

 

 

In Pattern you can also use advanced regular expressions (ARE). You can see their full description here.

You should use the following format:

 

<list of placeholders> =~ /<ARE>/

 

If you want ARE to be case insensitive then use =~~ instead of =~.

Placeholders in the list can be separated by any character (comma, space, etc) or no separated at all.

You should enclose in brackets part of ARE that you want to assign to a field.

ARE enclosed in / / returns the list of matches which is assigned to the list of placeholders.

 

Example:

You have a filename that looks like:

015. Sandra - Sleep (alternative version 'Casino Royale').mp3

 

Use pattern:

%R %A %T =~ /(\d+)\W+(\w+)\W+(\w+)/

 

An you will get:

Track = 15

Artist = Sandra

Title  = Sleep


Because:

(\d+) is assigned to %R

(\w+) is assigned to %A

(\w+) is assigned to %T

 

You can fill tags of all files in the Tags table or only selected ones.

If there are selected files then only they will be processed. Otherwise tags of all files will be changed – it is default behavior.

Press Apply button to execute filling tags by filenames.

You can always undo this action.