Reply To: Audioscrobbler/Last.FM Support with Portable_Player_Logging


seems the output need to be sorted by date, otherwise will complain:

Spam protection triggered: You submitted a track dated earlier than your last submission.

so we need to change the line:

$SQLITE $DATABASE 'SELECT artist,album,title,track,song_length,time_played FROM songs where time_played > '$LASTRUN' ORDER BY time_played ASC;' | awk -F '|' '{ printf "%st%st%st%st%dtLt%sn",$1,$2,$3,$4,$5/600,$6 }' >> $OUTLOG