Join GitHub today
"How to make sure that the song tagged by Shazam was longer than 30 seconds?" #16
I just got hit by a radio station playing lots of snippets of songs in succession.
At least one method of validation is not to scrobble until at least 30 seconds have elapsed. If a new track has come in from Shazam in those 30 seconds, then don't scrobble.
You can (and it'd be a great addition) to send a now playing notification as soon as a track starts playing, but wait on the scrobble one until later.
The thing is that Shazam only sends one notification per song, no matter how long the song has been played. So this is not about the Last.fm API.
The solution suggested on the README needs to be tested.
Does that mean wiping the list of songs in the Shazam drop down? Would people find it annoying? Shazam might not like it.
Agreed. All we know is: