I'm now using the official playback statistics component, version 1.3.1.
The playcounter works nice but the daily plays and last played columns fail to work due to the new timestamp format this component uses.
Below are the tags I have on my files now. The first three are from the official component. The last two are from the unofficial one that I kept. (Only the tags not the component iteself!)
<FIRST_PLAYED_TIMESTAMP> : 128007951550781250
<LAST_PLAYED_TIMESTAMP> : 128007951550781250
<PLAY_COUNT> : 3
<FIRST_PLAYED> : 2006-06-26 18:57:15
<LAST_PLAYED> : 2006-07-24 14:27:17
Can someone help me with the code to convert the first played timestamp (128007951550781250) to the first played date format (2006-06-26 18:57:15) the navigator-suite uses?
<EDIT>
Hmm.. I have found out that if I delete the fist_played and last_played tags from my files, foobar is able to retrieve the right date format by just using %first_played% and %last_played% in your script.
But I would still like to have my last played and fist played dates to be converted to the new timestamp format!
Does anyone know how to do this?
</EDIT>
I create next script to decode LAST_PLAYED_TIMESTAMP to LAST_PLAYED
$if(%last_played_timestamp%,$puts(second_day,$div($mod($add(%last_played_timestamp%,144000000000),864000000000),10000000))
$puts(days_after,$div($sub(%last_played_timestamp%,127805184000000000),864000000000))
$ifgreater($get(days_after),242,$puts(month_after,09)$puts(days_of_month,$sub($get(days_after),242)),$ifgreater($get(days_after),211,$puts(month_after,08)$puts(days_of_month,$sub($get(days_after),211)),$ifgreater($get(days_after),180,$puts(month_after,07)$puts(days_of_month,$sub($get(days_after),180)),)))2006-$get(month_after)-$num($get(days_of_month),2) $put(hh,$num($div($get(second_day),3600),2)):$put(mm,$num($div($mod($get(second_day),3600),60),2)):$num($mod($get(second_day),60),2),%last_played%)
Create new column and paste this code in it.
Moderation: Changed CODE to CODEBOX in order to preserve forum layout.