soundnode-app icon indicating copy to clipboard operation
soundnode-app copied to clipboard

SCapiService.checkRateLimit causes entire track to download

Open smith153 opened this issue 7 years ago • 0 comments

I've noticed when playing long tracks that there is a noticeable lag time between when the track is clicked to play and when the track actually plays. On closer inspection, I see that the call to SCapiService.checkRateLimit within app/public/js/common/utilsService.js causes the whole track to be downloaded. I have since replaced the checkRateLimit function to only return an empty promise and the app works as it should (only faster). I am not familiar with the soundcloud api (or perhaps it recently changed), but I am not aware of any other way to check for a rate limit.

smith153 avatar Feb 25 '18 00:02 smith153