Tango.info music track metadata submissions: Difference between revisions
Jump to navigation
Jump to search
Line 31: | Line 31: | ||
The following Mp3tag export config will generate such a text from a [[TINT-based filing]] source: | The following Mp3tag export config will generate such a text from a [[TINT-based filing]] source: | ||
<pre>'<TIN>;%album%;%BAND%;cd;%discnumber%;%track%;%title%;%genre%;%artist%;;%year%;%_length%' | <pre>$filename(c:\temp.txt,ANSI)'<TIN>;%album%;%BAND%;cd;%discnumber%;%track%;%title%;%genre%;%artist%;;%year%;%_length%' | ||
$loop(%_parent_directory%\%_directory%\%track%)%_parent_directory%;%album%;$if($and($and($neql(%BAND%,),$neql(%ALBUMARTIST%,)),$neql(%BAND%,%ALBUMARTIST%)),ERROR! Band/AlbumArtist conflict,%BAND%%ALBUMARTIST%);cd;%discnumber%;%track%;$regexp(%title%,' \[.*\]',);$lower(%genre%);%artist%;;%year%;%_length% | $loop(%_parent_directory%\%_directory%\%track%)%_parent_directory%;%album%;$if($and($and($neql(%BAND%,),$neql(%ALBUMARTIST%,)),$neql(%BAND%,%ALBUMARTIST%)),ERROR! Band/AlbumArtist conflict,%BAND%%ALBUMARTIST%);cd;%discnumber%;%track%;$regexp(%title%,' \[.*\]',);$lower(%genre%);%artist%;;%year%;%_length% | ||
$loopend()</pre> | $loopend()</pre> | ||
or to exclude srouce comments inside [...]: | |||
<pre>$filename(c:\temp.txt,ANSI)'<TIN>;%album%;%BAND%;cd;%discnumber%;%track%;%title%;%genre%;%artist%;;%year%;%_length%' | |||
$loop(%_parent_directory%\%_directory%\%track%)%_parent_directory%;$regexp(%album%,' +\[.*\]',);$if($and($and($neql(%BAND%,),$neql(%ALBUMARTIST%,)),$neql(%BAND%,%ALBUMARTIST%)),ERROR! Band/AlbumArtist conflict,%BAND%%ALBUMARTIST%);cd;%discnumber%;%track%;$regexp(%title%,' \[.*\]',);$lower(%genre%);%artist%;;%year%;%_length% | |||
$loopend()</pre> | |||
Note: no source property value may contain the separator character ";". | Note: no source property value may contain the separator character ";". | ||
Note: Title has any [...] deleted, Genre is lowercased, Album Artist received only one of %band% (WMA/MP3) or %albumartist% (FLAC) | Note: Title has any [...] deleted, Genre is lowercased, Album Artist received only one of %band% (WMA/MP3) or %albumartist% (FLAC) |
Revision as of 2009-09-15T23:49:18
track metadata submissions
The format preferred by the data.tango.info editor for receiving track metadata is text consisting of:
- a header line containing the Mp3tag format string below
- for each track, one line containing the metadata field values as generated by this Mp3tag format string:
<TIN>;%album%;%BAND%%albumartist%;cd;%discnumber%;%track%;%title%;%genre%;%artist%;;%year%;%_length%
where <TIN> is a source-dependent expression yielding the album TIN. If the source is TINT-based filing, this expression is %_parent_directory%.
For example:
<TIN>;%album%;%BAND%;cd;%discnumber%;%track%;%title%;%genre%;%artist%;;%year%;%_length% 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;1;Nostalgias;tango;Francisco Lomuto canta Jorge Omar;;;03:04 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;2;Quiero verte una vez más;tango;Francisco Lomuto canta Fernando Díaz;;;02:27 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;3;Sentimiento gaucho;tango;Francisco Lomuto;;;02:54 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;4;Madreselva;tango;Francisco Lomuto canta Jorge Omar;;;02:37 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;5;La melodía de nuestro adiós;tango;Francisco Lomuto canta Jorge Omar;;;02:20 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;6;Damisela encantadora;vals;Francisco Lomuto canta Jorge Omar;;;02:57 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;7;Por la vuelta;tango;Francisco Lomuto canta Jorge Omar;;;02:30 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;8;Dímelo al oído;tango;Francisco Lomuto canta Alberto Rivera;;;02:40 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;9;Adiós muchachos;tango;Francisco Lomuto canta Jorge Omar;;1942;02:42 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;10;Intimas;tango;Francisco Lomuto canta Carlos Galarce;;;02:38 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;11;Caminito;tango;Francisco Lomuto canta Cerry Brian, Jorge Omar;;;03:15 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;12;Noche de ronda;vals;Francisco Lomuto;;;02:33 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;13;Las cuarenta;tango;Francisco Lomuto canta Jorge Omar;;;02:48 00743216153824;RCA Club [00743216153824];Francisco Lomuto;cd;1/1;14;La gayola;tango;Francisco Lomuto canta Fernando Díaz;;;03:11
The following Mp3tag export config will generate such a text from a TINT-based filing source:
$filename(c:\temp.txt,ANSI)'<TIN>;%album%;%BAND%;cd;%discnumber%;%track%;%title%;%genre%;%artist%;;%year%;%_length%' $loop(%_parent_directory%\%_directory%\%track%)%_parent_directory%;%album%;$if($and($and($neql(%BAND%,),$neql(%ALBUMARTIST%,)),$neql(%BAND%,%ALBUMARTIST%)),ERROR! Band/AlbumArtist conflict,%BAND%%ALBUMARTIST%);cd;%discnumber%;%track%;$regexp(%title%,' \[.*\]',);$lower(%genre%);%artist%;;%year%;%_length% $loopend()
or to exclude srouce comments inside [...]:
$filename(c:\temp.txt,ANSI)'<TIN>;%album%;%BAND%;cd;%discnumber%;%track%;%title%;%genre%;%artist%;;%year%;%_length%' $loop(%_parent_directory%\%_directory%\%track%)%_parent_directory%;$regexp(%album%,' +\[.*\]',);$if($and($and($neql(%BAND%,),$neql(%ALBUMARTIST%,)),$neql(%BAND%,%ALBUMARTIST%)),ERROR! Band/AlbumArtist conflict,%BAND%%ALBUMARTIST%);cd;%discnumber%;%track%;$regexp(%title%,' \[.*\]',);$lower(%genre%);%artist%;;%year%;%_length% $loopend()
Note: no source property value may contain the separator character ";". Note: Title has any [...] deleted, Genre is lowercased, Album Artist received only one of %band% (WMA/MP3) or %albumartist% (FLAC)