From 3cd6fd64ca703b692d06d51ff106881e795a99ab Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Sun, 12 Jun 2022 13:30:23 -0400 Subject: [PATCH] Added comment about sleep --- beetsplug/spotify.py | 1 + 1 file changed, 1 insertion(+) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 90484fc59..b39343284 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -577,6 +577,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin): self._log.debug('Total {} tracks', len(items)) for index, item in enumerate(items, start=1): + # Added sleep to avoid API rate limit time.sleep(.5) self._log.info('Processing {}/{} tracks - {} ', index, len(items), item)