Changes the internal ratelimiting scheme.

Rather than ratelimit to one request per-second, attempt to detect the
MusicBrainz API ratelimiting. The API will return HTTP 503 errors once
ratelimiting has begun. Once this has been detected, the script will wait 1
second before continuing processing.
This commit is contained in:
2024-10-03 14:53:52 -04:00
parent ea7396ff53
commit 386f17779b
2 changed files with 1 additions and 48 deletions

View File

@@ -39,4 +39,4 @@ for artist in dir_list:
print(e)
count += 1
sleep(1)
#sleep(1)