"Create new names based on MP3 ID3 tags"
TARGET FILES:
MP3 music files (*.mp3) with ID3v1.x or ID3v2.x tags.
CASE:
Many of us have huge collections of MP3 files. Most of these files have unreadable names such as "track01.mp3", "artist_song04.mp3", "untitled37.mp3", etc.
Renaming these files manually can be a really exhausting task, particularly if you have hundreds or thousands of files.
SOLUTION:
These MP3 files have ID3 tag information which can be used by NIYoW to create a new, readable, filenames. This set uses this information to create the new names while also being able to handle even incomplete tags to create the names. The filename format created by this solution is: "Artist - Track- Title.mp3". You can change it later to match it to your needs.
Example FILEname:
Before: "track01.mp3"
After: "01 - Robert Miles - Children.mp3"
Download NIYoW:
In order to use this set, you must have NIYoW installed. Don't have NIYoW yet? Download now!
DOWNLOAD SET:
http://www.niyow.com/rules/mp3_example01.rls
THE RULES:
# |
Rule |
Parameters |
Description |
1 |
Miscellaneous: "Skip rule if causing validation error" | Skip Rules="True" | To handle incomplete tags, we choose to ignore rules that cause validation errors. Rule happens to be invalid when one or more of its variables returns empty result. This will be used to skip empty ID3 tag fields. |
2 |
Title & Extension: "Create a new name" | New Text="" Apply To="Title" |
Clear the title of the filename. We want to create a new name from scratch. |
3 |
Title & Extension: "Attach text to edge of name" | Insert This="%id3v2_title ELSE id3v1_title% - " Insert Where="Start" Apply To="Title" |
This rule tries to add the title of the song to the new name using the "id3v1_title" and the "id3v2_title" variables. Using the "ELSE" word it tries to retrieve the title from the ID3 v2.x, if not found, tries to get it from ID3 v1.x. If both variables cannot be retrieved, a validation event will occur and the whole rule will be skipped as specified by rule #1. |
4 |
Title & Extension: "Attach text to edge of name" | Insert This="%id3v2_artist ELSE id3v1_artist% -" Insert Where="Start" Apply To="Title" |
This rule is identical to the previous one, except it is intended to add the artist of song. |
5 |
Title & Extension: "Attach text to edge of name" | Insert This="%id3v2_track ELSE id3v1_track% -" Insert Where="Start" Apply To="Title" |
This rule is identical to both previous rules, except it is intended to add the track of song. Note that even though the order of fields is title, artist and then track, the result will be exactly in the opposite order. |
6 |
Title & Extension: "Remove characters from position" | Starting Position="1" Length="3" Remove Direction="Right to Left" Apply To="Title" |
The three previous rules added a separator (" - ") at the end of each rule to separate between the filename parts. Since we have one extra separator we have to remove it. |
7 |
Letters: "Change capitalization" | Capitalization Type="First Letter Up" Apply To="Title" |
Capitalize the text to make it look better. |
Possible enhancements:
Comments:
This set might seem a bit complex at first. However, understanding how it works gives you the power and the flexibility to complete almost any renaming task.