Last.fm’s audio scrobbler has an option that “scrobbles” a track after to listening to anywhere between 50% to 100% of the song. So the song is considered listened to if you only listen to 4:30 of a 5 minute song. I LOVE THIS OPTION. I wish every music player did this. It doesn’t even need to be an option–just hardcode it to MAX(30 seconds, 0.8 * tracklength)
Me
I’m a computer software engineer living and working in the San Francisco Bay Area, California, USA. My name is Mark Doliner. I’m originally from North Carolina.Pages
Me Elsewhere
Other Stuff
-
My Recent Photos



More Photos Archives
- December 2011 (2)
- November 2011 (2)
- October 2011 (1)
- September 2011 (2)
- August 2011 (1)
- July 2011 (1)
- March 2011 (2)
- December 2010 (2)
- November 2010 (1)
- September 2010 (1)
- July 2010 (1)
- June 2010 (1)
- April 2010 (3)
- March 2010 (2)
- February 2010 (4)
- December 2009 (1)
- October 2009 (2)
- September 2009 (1)
- August 2009 (5)
- July 2009 (6)
- June 2009 (3)
- May 2009 (1)
- February 2009 (4)
- January 2009 (4)
- December 2008 (5)
- November 2008 (4)
- October 2008 (3)
- September 2008 (6)
- August 2008 (4)
- July 2008 (2)
- June 2008 (1)
- May 2008 (8)
- April 2008 (3)
- March 2008 (8)
- February 2008 (4)
- January 2008 (7)
- December 2007 (5)
- November 2007 (5)
- October 2007 (7)
- September 2007 (6)
- August 2007 (2)
- July 2007 (4)
- June 2007 (3)
- May 2007 (4)
- April 2007 (5)
- March 2007 (1)
- February 2007 (6)
- January 2007 (3)
- December 2006 (6)
- November 2006 (6)
- October 2006 (8)
- September 2006 (4)
- August 2006 (14)
- July 2006 (4)
- June 2006 (14)
- May 2006 (10)
- April 2006 (10)
- March 2006 (13)
- February 2006 (9)
- January 2006 (14)
- December 2005 (14)
- November 2005 (8)
- October 2005 (9)
- September 2005 (7)
- August 2005 (12)
- July 2005 (11)
- June 2005 (14)
- May 2005 (13)
- April 2005 (10)
- March 2005 (12)
- February 2005 (12)



Don’t you mean MIN(30 seconds, 0.8 * tracklength) ? Otherwise a 37 second track will never be “scrobbled”.
Also, why do you love this option so much? Not patient enough to finish up the song? :P
Actually, I’m a moron and that doesn’t do what you want either… So I suppose you put that there so one has to listen to at least the first 30 seconds. I guess you just need a special case for tracks shorter than 30 seconds.
Oh yeah, good point. Should be MIN(tracklength, MAX(30, 0.8 * tracklength)). The MIN/MAX thing isn’t that important… I was just thinking that if you have a bunch of 3 second songs and you’re skipping through them quickly you wouldn’t want them to be considered “played” after only 2 seconds. I might have over-thought that.
I guess because I find myself skipping to the next song with like 5 or 10 seconds to go. Especially if the song has a bunch of talking at the end (who does that?!).