fossfreedom / coverart-search-providers

Drop in Rhythmbox replacement to CoverArt Search to provide new and updated coverart search providers both local and by internet image hosts
http://xpressubuntu.wordpress.com/
GNU General Public License v3.0
10 stars 1 forks source link

correctly do rate limiting #15

Closed fossfreedom closed 10 years ago

fossfreedom commented 10 years ago

All the internet providers have rate limiting requirements.

We are currently doing stuff not efficiently or in breach of those requirements.

Lets make sure that where we have previously done a seach we use a gdk_idle_add type calculation rather than a hardcoded "sleep" statement - should speed stuff up.

Also make sure where we do a repeated search (search_next) - we use rate limiting - currently we don't

Spotify - 120 requests per minute

LastFM - 5 requests per second

Music Brainz - 1 request per second

CoverArt Archive - same as Music Brainz