While this is pretty cool, it's quite impractical.
You could just poll their HTTP API for the currently playing song and compare the playtime. Plus this would work for any client, even mobile devices.
But for sure the interesting part of this is the method, not the purpose.