Tagging: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:
==How to use http://tools.tango.info/tagging.php==
==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.
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===
===Step 1 - Rip CD to your hard drive===
Use a program such as CDex (available from http://cdexos.sourceforge.net ).
Use a program such as CDex (http://cdexos.sourceforge.net). Ensure you rip each CD to a separate folder. To be able to perform multiple CD tagging (see below), you must ensure you rip every track from each album.
You need to rip each CD to a separate folder.


===Step 2 - Retrieve the tagging information for the newly ripped audio files===
===Step 2 - Retrieve the tagging information for the newly ripped audio files===
Note: This procedure requires the mp3tag program, from http://www.mp3tag.de/en/ (English, free of charge).  
Note: This requires the mp3tag program V2.39c or later, from http://www.mp3tag.de/en/ (English, free of charge).  
Note: Currently this procedure works only for single-CD albums.
Note: Currently this procedure works only for single-CD albums.
The barcode number referred to below is the 13 or 14-digit number found next to the barcode which is usually found on the back cover of the CD case.


Either
Either


a) For a CD the cover of which shows a barcode number of 13 or 14 digits:
* For a single CD for which you have the barcode number:
 
# Go to http://tools.tango.info/tagging.php.
Go to http://tools.tango.info/tagging.php
# Enter the bar code number into the (unlabelled) query window and click '''Submit Query'''.
 
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 http://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 '''tools.tango.info/tagging'''.
 
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
* or, for a single CD for which you do not have the barcode number:
# Go to http://eng.tango.info, enter album's artist name and click '''search'''.
# In the search results, locate under ''CDs'' the title of your album, click on it, and then click on '''tools.tango.info/tagging'''.


In the text editor window, and replace the entire content with the lines (taking care to preserve the line break):
* or, for multiple CDs for which you have barcode numbers:
# Ensure each CD is in a separate folder the name of which somewhere contains the barcode number, and that all these folders are in a single containing folder with no other audio files.
# Launch '''mp3tag'''.
# Click '''File | Change directory...''' and select the folder containing your CD files.
# Click '''File | Export | <starred page icon>''' and click '''OK'''.
# In the text editor window, replace the entire content with the following two lines (taking care to preserve the line break):<br>
<pre>$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()</pre>
# Save the file.
# In the mp3tag '''Options''' dialog box, click '''OK'''.
# When asked '''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 to the clipboard.
# Go to http://tools.tango.info/tagging.php.
# Paste into the (unlabelled) query window and click '''Submit Query'''.


<pre>$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
===Step 3 - Create a text file containing the retrieved tagging information===
))$loopend()</pre>
With your mouse, highlight the list of tags you retrieved in Step 2, then right click and Copy it. (Note: don't copy the whole page, just the list of tags. 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.)
 
Launch Notepad, press CTRL+V to patste this list, then press '''CTRL+S''' to save and enter as the Filename '''c:\temp.txt'''.
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===
===Step 4 - Tag the audio files===
This uses the tagging program mp3tag - http://www.mp3tag.de/en/ (English).
*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
<pre>$if($eql(%_directory%,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2)),none found in folder name,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2))</pre>
Click OK


In the tracklist column headers, click on "TIN".
# Launch '''mp3tag'''.
# Click ''' File | Change directory...''' and select the folder containing your ripped CD(s).
# If you are tagging multiple CDs:
## Right-click the tracklist heading, and click '''Customise columns...'''.
## In the '''Columns''' dialog box that appears, click '''<starred page icon>'''.
## In '''Name''' enter "TIN".
## In '''Value''' and '''Sort by''' enter<br><pre>$if($eql(%_directory%,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2)),none found in folder name,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2))</pre>.
##Click '''OK'''.
##In the tracklist heading, click on "TIN".


*d. Press CTRL-A to select all files.
# Click '''Edit | Select all files'''.
*e. Select Convert | Text file - tag ('Taglist-file/Tag' in older versions);
# Click '''Convert | Text file - tag'''.
*f. In Filename enter the path of the text file in which you saved the tagging.php output.
# In '''Filename''' enter '''c:\temp.txt'''.
In 'Format string' enter the following line <pre>%dummy%;%album%;%track%;%title%;%artist%;%genre%;%year%;%dummy%</pre>
# In '''Format string''' enter<pre>%dummy%;%album%;%track%;%title%;%artist%;%genre%;%year%;%dummy%</pre>.
*g. Click OK. The files will be tagged.
# Click '''OK'''. The files will be tagged.
Note: If the quantity of format string fields fails to equal the quantity of fields in each text file line, no tagging will occur.


Note: If the file set fails to include every track from each CD, the file lsit will be misaligned with the text file list and mistagging will occur.
Note: If the file set fails to include every track from each CD, the tracklist will be misaligned with the tag list and hence mistagging will occur.


[[Category:computer]]
[[Category:computer]]

Revision as of 2007-10-21T18:04:19

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 (http://cdexos.sourceforge.net). Ensure you rip each CD to a separate folder. To be able to perform multiple CD tagging (see below), you must ensure you rip every track from each album.

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

Note: This requires the mp3tag program V2.39c or later, from http://www.mp3tag.de/en/ (English, free of charge). Note: Currently this procedure works only for single-CD albums.

The barcode number referred to below is the 13 or 14-digit number found next to the barcode which is usually found on the back cover of the CD case.

Either

  • For a single CD for which you have the barcode number:
  1. Go to http://tools.tango.info/tagging.php.
  2. Enter the bar code number into the (unlabelled) query window and click Submit Query.
  • or, for a single CD for which you do not have the barcode number:
  1. Go to http://eng.tango.info, enter album's artist name and click search.
  2. In the search results, locate under CDs the title of your album, click on it, and then click on tools.tango.info/tagging.
  • or, for multiple CDs for which you have barcode numbers:
  1. Ensure each CD is in a separate folder the name of which somewhere contains the barcode number, and that all these folders are in a single containing folder with no other audio files.
  2. Launch mp3tag.
  3. Click File | Change directory... and select the folder containing your CD files.
  4. Click File | Export | <starred page icon> and click OK.
  5. In the text editor window, replace the entire content with the following two 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()
  1. Save the file.
  2. In the mp3tag Options dialog box, click OK.
  3. When asked Display Export file now?, click Yes.
  4. In the text editor window that appears (showing a list of the barcode numbers of all the CDs), copy all lines to the clipboard.
  5. Go to http://tools.tango.info/tagging.php.
  6. Paste into the (unlabelled) query window and click Submit Query.

Step 3 - Create a text file containing the retrieved tagging information

With your mouse, highlight the list of tags you retrieved in Step 2, then right click and Copy it. (Note: don't copy the whole page, just the list of tags. 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.) Launch Notepad, press CTRL+V to patste this list, then press CTRL+S to save and enter as the Filename c:\temp.txt.

Step 4 - Tag the audio files

  1. Launch mp3tag.
  2. Click File | Change directory... and select the folder containing your ripped CD(s).
  3. If you are tagging multiple CDs:
    1. Right-click the tracklist heading, and click Customise columns....
    2. In the Columns dialog box that appears, click <starred page icon>.
    3. In Name enter "TIN".
    4. In Value and Sort by enter
      $if($eql(%_directory%,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2)),none found in folder name,$regexp(%_directory%,^(.*)('[''[':digit:']'']'{13,14}).*$,\2))
      .
    5. Click OK.
    6. In the tracklist heading, click on "TIN".
  1. Click Edit | Select all files.
  2. Click Convert | Text file - tag.
  3. In Filename enter c:\temp.txt.
  4. In Format string enter
    %dummy%;%album%;%track%;%title%;%artist%;%genre%;%year%;%dummy%
    .
  5. Click OK. The files will be tagged.

Note: If the file set fails to include every track from each CD, the tracklist will be misaligned with the tag list and hence mistagging will occur.

Notes

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