I solved for me problem whith playback statistics in next way.
Before I stop use 8.3, then change in datebase (not in files) last_layed on past_played (masstager is very good for this job).
Then load all datebase to one playlist and save it.
Start 9.0 and clear media library, then load previous playlist and close foobar.
Then start foobar and restore path of media library, close afoobar again. Now whe have new media library file.
In columns Total played I change code to
//%play_counter%'x'
//$get_global(standard_color_low)' total'
$if(%play_counter%,
$add(%play_counter%,%play_count%), %play_count%
)
In column Last played I change code to
$if(%last_played%,
$puts(last_played,%last_played%)
$puts(lastplayed_d-2000,$add(
$mul($substr($get(last_played),3,4),365),
$select($substr($get(last_played),6,7),0,31,59,90,120,151,181,212,243,273,304,334),
$substr($get(last_played),9,10)))
// calculate days since last play
$puts(days_since_last_play,$max(0,$sub($get_global(system_d-2000),$get(lastplayed_d-2000))))
// last played
$ifgreater($get(days_since_last_play),30,$left($get(last_played),10),
$ifgreater($get(days_since_last_play),1,$get(days_since_last_play)days ago,
$ifgreater($get(days_since_last_play),0,yesterday,
$get_global(special_color)' - today - '
)))
$char(9)$get_global(standard_color_low)$substr($get(last_played),12,16),
$if(%past_played%,
$puts(last_played,%past_played%)
$puts(lastplayed_d-2000,$add(
$mul($substr($get(last_played),3,4),365),
$select($substr($get(last_played),6,7),0,31,59,90,120,151,181,212,243,273,304,334),
$substr($get(last_played),9,10)))
// calculate days since last play
$puts(days_since_last_play,$max(0,$sub($get_global(system_d-2000),$get(lastplayed_d-2000))))
// last played
$ifgreater($get(days_since_last_play),30,$left($get(last_played),10),
$ifgreater($get(days_since_last_play),1,$get(days_since_last_play)days ago,
$ifgreater($get(days_since_last_play),0,yesterday,
$get_global(special_color)' - today - '
)))
$char(9)$get_global(standard_color_low)$substr($get(last_played),12,16),
)
)