edgecase / spotbox

Official jukebox of the EdgeCase lab
Other
13 stars 1 forks source link

Require realistic listening time for "recent tracks" #34

Closed tonywok closed 12 years ago

tonywok commented 12 years ago

To prevent skewing of recent tracks (and eventually metrics), only add songs to recent tracks if the song plays for a certain amount of time.

I believe Last.fm requires somewhere between 1/2 and 3/4 of the track in order for it to count. Another possibility would be to only add to recent tracks when we receive the "trackEnded" notification.

agrieser commented 12 years ago

Implemented. Player has a "constant" called PLAYED_THRESHOLD that is used to determine when a song should be considered played. This is currently set to 0.5.