Tango.info track tagger format string
The tango.info tagger since 1.3.2 (work in progress) accepts a format string for the output.
The format string can be set via the input field or via url, e.g.:
https://tango.info/tools/tagger1.3.2.php?format_string=%25tint%25
- %disc_tqty% number of tracks in disc (count in tracks table, CURRENTLY THIS IS NOT THE MAX OF TRACK NUMBER)
- %album_tqty% number of tracks in album (count in tracks table)
- %album_dqty% number of discs in album (max value for album_side in tracks table)
Aliases exist see below. For work on tags or wishes see TIS tags.
Available variables can be seen below, all strings in the form %<variable_name>% are variables, e.g. %tin% gives the TINP.
%date% is the raw format as defined in tango.info track date, %year% the year if known.
1.3.2
//======= output formatting ============ $sf=""; $sf["%x_count%"]=$x_count; //===product specific=== $sf["%tin%"]=$t["product_tin"]; $sf["%album_name%"]=$t["product_name"]; //alias $sf["%album%"]=$t["product_name"]; $sf["%album_artist%"]=$t["product_artist"]; //alias $sf["%album artist%"]=$t["product_artist"]; $sf["%album_pubcode%"]=$t["product_pubcode"]; $sf["%album_collection%"]=$t["product_collection"]; //alias $sf["%album collection%"]=$t["product_collection"]; $sf["%album_dqty%"]=$t["product_disc_qty"]; //alias $sf["%album_disc_qty%"]=$t["product_disc_qty"]; $sf["%album_tqty%"]=$t["product_track_qty"]; //===side specific=== $sf["%discnumber%"]=$t["product_side"]; $sf["%disc_tqty%"]=$t["track_qty"]; //alias $sf["%disc_track_qty%"]=$sf["%disc_tqty%"]; //===track specific=== $sf["%tint%"]="{$t["product_tin"]}-{$t["product_side"]}-{$t["track_num"]}"; $sf["%track%"]=$t["track_num"]; //alias $sf["%tracknumber%"]=$t["track_num"]; $sf["%title%"]=$t["track_name"]; $sf["%artist%"]=$t["track_artists"]; $sf["%artist_vocmarker_off%"]=str_replace(", voc. ", ", ",$t["track_artists"]); $sf["%genre%"]=$t["track_genr"]; $sf["%date%"]=$t["track_date"]; $sf["%year%"]=$t["track_year"]; $sf["%duration%"]=$t["track_dura"]; $sf["%track_orch%"]=$t["track_orch"]; $sf["%track_voca%"]=$t["track_voca"]; //===performance specific=== $sf["%tiwc%"]=$t["work_id"];
Issues
V1.3.2 (https://tango.info/tools/tagger1.3.2.php)
- %year% can fail, returning a null string instead of the year value e.g. track page shows year 1941:
http://img442.imageshack.us/img442/1194/trackbendigotunombretan.png
but using format string %year%, tagger tag list shows null:
http://img855.imageshack.us/img855/3026/tangoinfogooglechrome.png
This did not happen on a track the date of which had month and day.
- Null output from a field (such as caused by the %year% failure reported separately) can cause a missing tag list line, leading to misaligment of tag lines v. tracks and hence to severe mistagging. E.g.
http://img163.imageshack.us/img163/3026/tangoinfogooglechrome.png
This did not happen where the track line generated other output e.g. from format string %year%; .
- Tag list and Process message: are on the same line, as if a line break was missing.
http://img163.imageshack.us/img163/3026/tangoinfogooglechrome.png