Tagging: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
Line 73: Line 73:


In the Value and 'Sort by' fields enter
In the Value and 'Sort by' fields enter
<pre>$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2)</pre>
<pre>$if($eql(%_directory%,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2)),none found in folder name,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2))</pre>


Click OK
Click OK


In the tracklist column headers, click on "TIN". Verify that all tracks are displaying a valid TIN here.
In the tracklist column headers, click on "TIN".


*d. Press CTRL-A to select all files.
*d. Press CTRL-A to select all files.

Revision as of 2007-04-04T01:19:28

Software

How to use http://tools.tango.info/tagging.php

These are instructions for ripping CDs to your hard drive and tagging the resulting mp3 or flac files with tagging information from tango.info.

Step 1 - Rip CD to your hard drive

Use a program such as CDex (available from http://cdexos.sourceforge.net ). You need to rip each CD to a separate folder.

Step 2 - Retrieve the tagging information for the newly ripped audio files

Note: Currently this procedure works only for single-CD albums.

Either

a) For a CD the cover of which shows a barcode number of 13 or 14 digits:

Go to http://tools.tango.info/tagging.php

Enter the bar code number into the (unlabelled) query window and click Submit Query

b) For a CD of which you do not have the barcode number:

Go to eng.tango.info, enter album's artist name and click 'search'.

In the search results, locate under 'CDs' the title of the album, click on it, and click on the tools.tango.info/tagging link.

For example: http://tools.tango.info/tagging.php?tins=00743219561220 .

c) For a collection of CDs of which you have every track ripped into per-CD folders containing anywhere in the name the barcode number of 13 or 14 digits:

Launch the mp3tag program

Add all the folders

Click File | Export | (New icon) and click OK

In the text editor window, and replace the entire content with the lines (taking care to preserve the line break):

$filename(,ansi)$loop($if($eql(%_directory%,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2)),,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2)),1)$if($eql(%_directory%,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2)),,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2
))$loopend()

Save the file

In the mp3tag Options dialog box, click OK.

To 'Display Export file now?', click Yes.

In the text editor window that appears (showing a list of the barcode numbers of all the CDs), Copy all lines.

Go to http://tools.tango.info/tagging.php

Paste into the (unlabelled) query window and click Submit Query.

Step 3 - Create a txt file with the retrieved tagging information

With your mouse, highlight the list of tags you retrieved in Step 2, then right click and Copy it. (Note: you don't copy the whole page, just the data list. Each line of this list begins with the 14-digit number and is followed by other tagging info such as album, song title, track number and year.) Paste the list of tags into a text program like Notepad. Save this as a file with name ending .TXT .

Step 4 - Tag the audio files

Here are instructions for the free tagging program called mp3tag, available from http://www.mp3tag.de/en/ (English). Configure the program:

  • a. Launch the program;
  • b. Drag the CD folder(s) from Explorer into the mp3tag tracklist (right) pane.
  • c. If you are tagging multiple CDs:

Right-click a tracklist column heading, and click 'Customise columns...'

In the Columns dialog box that appears, click the New (page with star) icon.

In the Name field enter "TIN"

In the Value and 'Sort by' fields enter

$if($eql(%_directory%,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2)),none found in folder name,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2))

Click OK

In the tracklist column headers, click on "TIN".

  • d. Press CTRL-A to select all files.
  • e. Select Convert | Text file - tag ('Taglist-file/Tag' in older versions);
  • f. In Filename enter the path of the text file in which you saved the tagging.php output.

In 'Format string' enter the following line

%dummy%;%album%;%track%;%title%;%artist%;%genre%;%year%;%dummy%

(The number of fields in the text file must equal the number of fields in the format string.)

Notes

1 The 'disc_tin' field carries a TIN - see http://wiki.tango.info/mul/Tango_Information_Number .