sampsyo/beets — pull request #71 by zacharydenton (2012-12-22 05:38:45+00:00)
Title: echonest_tempo plugin: Don't crash when Echo Nest API rate limit is exceeded.

Currently, when the echonest_tempo plugin exceeds the API rate limit (120 requests per minute), it crashes with a pyechonest.util.EchoNestAPIError exception. This patch catches the rate limit exceeded exception, waits for 10 seconds, and tries again.

After applying this patch I was able to get BPM information for my entire collection, whereas previously it would crash after a couple hundred tracks.