PRAISE: for Tag Sources > Discogs Release ID


#1

I recently found three folders with the following uninformative filenames;
and the Artist name and song Title were not in any tag:

Folder: Blue Beat - The Birth Of Ska CD 1
01-AudioTrack 01.mp3
...
18-AudioTrack 18.mp3

Folder: Blue Beat - The Birth Of Ska CD 2
01-AudioTrack 01.mp3
...
16-AudioTrack 16.mp3

Folder: Blue Beat - The Birth Of Ska CD 3
01-AudioTrack 01.mp3
...
16-AudioTrack 16.mp3

Thanks mostly to a special feature of Mp3tag, these files have now been renamed to:

1.01 - The Magic Notes w. Drumbago & The Jazz Beat - Rosabel [Blue Beat 51] - 1961
...
3.16 - Owen Grey With The Jets - Nobody Else [Blue Beat 75] - 1962

The 50 audio files are the A and B sides of 1960s UK record label Blue Beat #51 to 75.

I'd like to share with you, how this was done, by just using Mp3tag.

(please note, I am aware that some steps below could be done just as quickly,
if not more quickly, by simply editing the audio filenames in a file manager [such as Explorer],
and/ or manually editing the tag columns or panel in the main window of Mp3tag, but let's
stick with Mp3tag menu commands to show what this app can do, and imagine that instead
of just one batch of 50 files, there were many more files)

The following steps will demonstrate the following menu options, functions and built-in variables:
Tag Sources > Discogs Release ID
Convert > Tag - Filename
Convert > Filename to Tag
Convert > Tag - Tag
Convert > Filename - Filename
View > Customize Columns (to create two new custom tags)
$caps2, $num, $add, $div, $if, $leql, $right, $regexp
%_counter%, %_directory%, %_filename%, %track%, %artist%, %title%, %dummy%

. First, search, and go to the Discogs web page, for the album:
.....The History Of Blue Beat - The Birth Of Ska BB51 - BB75 A & B Sides
.....confirm that the album tracks 'line up' (coincide) with the audio files in the 3 folders
.....near top right of the web page is the Release ID, which is shown like this: [r4589425]
. Select all three folders in Windows Explorer (or any file manager with Mp3tag in its shell extension)
. Right-click this selection and left-click on Mp3tag (in the menu that pops up - the 'shell extension')
.....Mp3tag will select all files with an audio extension (eg .mp3) that it finds in these 3 folders
.....Mp3tag will open its main window and list the 50 mp3 filenames and their basic tags

. Go to menu option: Tag Sources > Discogs Release ID, and enter:4589425, click <Next>
.....A dialog box will pop-up, listing the Discogs album tracks in a left-side window, with the
.....previously selected 50 audio filenames alongside in a right-side window
. Do a final check that the two lists 'line up' with each other -
.....the files from Mp3tag (in the right-side window) can, if necessary, be moved up or down until
.....they coincide exactly, one for one, with the track list from Discogs in the left-side window.
. click <OK> at bottom of dialog box
.....Mp3tag will transfer basic track info from Discogs to the tags of the 50 files

let's now create the basic filenames
. Go to menu option: Convert > Tag - Filename
.....Format string: $caps2($num(%track%,2) - %artist% - %title%)
.....click <OK>
.....this will give us:
.....01 - The Magic Notes - Drumbago & The Jazz Beat - Rosabel.mp3
...
.....16 - Owen Grey With The Jets - Nobody Else.mp3

for each file, let's now append [record label id] and ' - year of release'
the record label ids go from 51 to 75 in pairs (for a and b-sides of each record);
the years of release are listed at: http://www.45cat.com/label/blue-beat/2
.....which shows 1961 for all these records except for the last four, 72 to 75, which are 1962

crucial to this step is the 'system counter': %_counter%, which starts from 1 and
..increments by 1 as each selected file is processed by a Convert command

the expression: $add($div($add(%_counter%,1),2),50)
..will create the correct sequence of record label numbers, 51 (a-side), 51 (b-side), 52 (a-side), 52 (b-side) ...

. Go to menu option: Convert > Tag - Filename
.....Format string:
..... %_filename% '['Blue Beat $add($div($add(%_counter%,1),2),50)']' - $if($leql(%_counter%,42),1961,1962)
.....click <OK>
.....this will give us:
.....01 - The Magic Notes - Drumbago & The Jazz Beat - Rosabel [Blue Beat 51] - 1961
...
.....16 - Owen Grey With The Jets - Nobody Else [Blue Beat 75] - 1962

let's now put the 45rpm record label ids (eg Blue Beat 75) and release years (eg 1961) into two custom tags -
..the usual album and year tags have being used, understandably, to store the album name and year,
..but for each album track we might want to add the original 45/78rpm record label id and year of release.
we will now create these two tags:
. Go to menu option: View > Customize Columns
.....click <New>, Name: Single ID, Value: %singleid, Field: %singleid%
.....click <New>, Name: Single Date, Value: %singledate%, Field: %singledate%
.....as an option, you can use <Move up> and <Move down> to position the columns for these tags in
.......Mp3tag's main window
.....click <OK>
we will now populate these two new tags from the filenames
. Go to menu option: Convert > Filename to Tag
.....Format string: %dummy% [%singleid%] - %singledate%
.....click <OK>

I like to prefix track numbers (in filenames) with the Volume or CD number, especially
..if track numbers start from 1 again for each CD in the set
In our case, the CD number is the last character of the name of the parent directory/folder, so:
. Go to menu option: Convert > Tag - Filename
.....Format string: $right(%_directory%,1).%_filename%
.....click <OK>
.....this will give us:
.....1.01 - The Magic Notes - Drumbago & The Jazz Beat - Rosabel [Blue Beat 51] - 1961
...
.....3.16 - Owen Grey With The Jets - Nobody Else [Blue Beat 75] - 1962

Finally, there is one peculiarity with the artist name that was sourced from Discogs. If there are two
..components to the artist name, they are separated with "-" instead of "&" or "with"; so we will now replace
..any "-" in an artist name with "w.":
. Go to menu option: Convert > Tag - Filename
.....Format string: $regexp(%_filename%,(.*) - (.*) - (.*) - (.*) - (\d\d\d\d),$1 - $2 w. $3 - $4 - $5)
.....click <OK> {10 filenames out of 50 were changed}
.....this will give us (for example):
.....1.01 - The Magic Notes w. Drumbago & The Jazz Beat - Rosabel [Blue Beat 51] - 1961.mp
let's also update the artist tag
. Go to menu option: Convert > Filename - Tag
.....Format string: %dummy% - %artist% - %dummy%
.....click <OK>

ADDENDUM

however, some people prefer to create or change tag data before changing the filename,
..so I will reverse the last two steps above and show how I would change the artist tag before
..using this tag to change the filename:
. Go to menu option: Convert > Tag - Tag
.....Field: ARTIST {not %ARTIST%}
.....Format string: $regexp(%artist%,(.*) - (.*),$1 w. $2)
.....click <OK>
. Go to menu option: Convert > Tag - Filename
.....Format string: $regexp(%_filename%,(.*) - (.*) - (.*) - (.*) - (\d\d\d\d),$1 - %artist% - $4 - $5)
.....{as usual, if a regexp pattern is not matched for an item, then no change is made to that item,
......and regexp will continue on to look at the next selected item}
.....click <OK>

for this last step, if you are willing to select just the files with a "-" in the artist name, then the following
..is a simpler method:
. Go to menu option: Convert > Filename - Filename
.....Old filename pattern: %1 - %2 - %3
.....New filename pattern: %1 - %2 w. %3
[it seems Mp3tag does not allow tag variables, such as %artist%, in 'Filename - Filename' patterns;
. also, with filename patterns, if any one item in a selection does not match the specified pattern, the
..Convert operation will stop and not continue, and Mp3tag does not immediately indicate on which
..of the selected items it stopped]