IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Converter, Renaming files based on tags, Filename to tag, Creating directories
Florian
post Feb 28 2009, 14:11
Post #1


Developer


Group: Admin
Posts: 7703
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.61d



1. How to rename files based on tags (Tag to Filename)?

2. How to create directory structures based on the tags and move the files (Tag to Directory)?

3. How to import parts of the filename into the tag (Filename to Tag)?

4. How to import parts of the folder structure into the tag (Directory to Tag)?



--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post
Florian
post Feb 28 2009, 14:15
Post #2


Developer


Group: Admin
Posts: 7703
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.61d



How to rename files based on tags?
How to create directory structures based on the tags and move the files?


Renaming files, creating folders and complete directory structures from tags can be done by using the mt_ttf.png Converter > Tag - Filename with a format string. A format string is used to describe the structure of the desired filename.

Besides using normal placeholders (such as %artist%, %title%, ...) and arbitrary text (e.g., Music) it also allows for separating folders with the backslash \ character.

Here is an example that renames the file based on the tags using the Tracknumber. Title format:
QUELLTEXT
$num(%track%,2). %title%

When you're using a backslash in a format string, Mp3tag will create a directory from the part of the format string in front of a backslash.

Here is an example that creates new directories under C:\Music:
QUELLTEXT
C:\Music\$left(%artist%,1)\%artist%-%year%-%album%\$num(%track%,2). %title%

The same is also possible using relative path names (instead of an absolute path in the example above) which creates the new directory below the current working directory:
QUELLTEXT
%artist%-%year%-%album%\$num(%track%,2). %title%

Please note that the whole range of Mp3tag's internal Scripting Functions can be used in the format string.


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post
Florian
post Feb 28 2009, 14:17
Post #3


Developer


Group: Admin
Posts: 7703
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.61d



How to import parts of the filename into the tag?
How to import parts of the folder structure into the tag?


Importing tags for filenames and directory names can be done by using the mt_ftt.png Converter > Filename - Tag.

The basic concept is the notion of a format string which describes the structure of the name to import from. The format string is built of either standard text (e.g., Music), placeholders (such as %artist%, %title%, ...), or backslash characters \ that denote directory structures.

Here is an example that imports tags from a file name 02. Four Ton Mantis.mp3
QUELLTEXT
%track%. %title%
Please notice how the format string completely resembles the structure of the file name.

It's also possible to import information from the directory structure of the file path where the backslash character is used to mark the different directories. For example, the information from the path Amon Tobin\[2000] supermodified\02 - For Ton Mantis.mp3 can be imported using
QUELLTEXT
%artist%\[%year%] %album%\%track% - %title%

Of course, sometimes it's also needed to omit some information that should not imported to the tag. This can be done using the %dummy% placeholder for the uninteresting part of the file path.


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th July 2014 - 23:31