Useful foobar2000 formatting strings

Formatting for djing

TINT

$num(%barcode%,14)-$num($max(1.%disc%),2)-$num(%track%,2)

Date

To display dates from tango.info properly (only confirmed dates with correct formatting)

$if2($greater($strstr(%date%,'--'),0),$date($left(%date%,10)))

Album

To get album names including catalognumber and artist, e.g. ‘CTA261 Adolfo Carabelli Vol.1 (1931-1933)’ I use this formatting string with the %album_pubcode% and %album_name% and %artist% from tango.info:

$replace($replace(%catalognumber%,' ',),'-',) %artist% %album%

Use the above with the automatically fill values tool from the properties dialogue. Choose source ‘Other’ and set the above as source. Use it to fill the album tag. (Assumes you have tagged your files with catalognumber, of course.)

File structure

Set all artists with more than one album artist (containing ‘,’) to Varios:
$if($strstr(%album artist%,','),Varios,%album artist%)

Use Varios for Various Artists albums, %artistsort% for the rest (included in the following formatting string):

$if($strstr(%album artist%,Varios),Varios,%artistsort%)

Use for file structure (copy/move, assumes Various Artists albums are tagged with %album artist% Varios and others have %artistsort% defined) :

$lower(%codec%)\$ascii($if($strstr(%album artist%,Varios),Varios,%artistsort%))\$ascii(%album%)[ if2(%catalognumber%,%barcode%)]\$ifgreater(%totaldiscs%,1,[$num(%disc%,2).],%track%) $ascii(%title%)

Tagging from tango.info

query string to use with http://tools.tango.info/tagger1.3.2.php

%tin%;%album_name%;%album_artist%;%track_orch%;%discnumber%;%track%;%title%;%genre%;%date%;%album_pubcode%;%track_voca%;%album_dqty%

Corresponding string to use in fb2k (fill from values):

%tin%;%album%;%album artist%;%artist%;%disc number%;%track number%;%title%;%genre%;%date%;%catalognumber%;%performer%;%totaldiscs%

For submission to tango.info

Following the metadata submission guidelines at tango.info. Useful in combination with text tools module.

[$num(%barcode%,14)];%album%;$if2(%ALBUMARTIST%,%artist%);cd;%discnumber%;%track%;%title%;[%genre%];%artist%;[%performer%];[%date%];%_length%

Misc

To put the singer in parenthesis after track title (saving screen real estate):

%title%[ '('$ifgreater($len(%performer%),1,%performer%,)')']
3 Responses leave one →
  1. 2010 June 30

    > TINT
    > $num(%barcode%,14)-$num($max(1.%disc%),2)-$num(%track%,2)

    Correction:

    $num(%barcode%,14)-$max(1,%disc%)-%track%

  2. 2010 July 1

    Yes, that works too. The last $num in my string is probably unnecessary, but I prefer it for the disc number for aesthethic reasons 🙂 Both work with the tango.info tagger.

  3. 2010 August 4

    > The last $num in my string is probably unnecessary

    It causes the result not to be a TINT, since TINT is defined to have no leading zeros. See http://wiki.tango.info/mul/TINT .

    > but I prefer it for the disc number for aesthethic reasons

    Fair enough. One may use any format one likes if interoperability is not required. Having said which, where some discs have more than 99 tracks, you’d need $num(%track%,3).

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS