12 Commits

Author SHA1 Message Date
dad5a3709d Cleanup main file.
Removed redundent formatting code.
2025-02-24 13:13:41 -05:00
26dfe543a1 Reimpliment delay to only trigger on 503 response
The code has been refactored to only trigger a one second delay when one of the APIs have returned a 503. This will allow the script to finish faster.
2024-10-15 08:52:22 -04:00
36a1f0ffab Reenable basic ratelimit.
A one second delay between requests to the fanart.tv servers. This is to prevent a 503 response that is given when requests are over the number per second allowed.
2024-10-14 23:33:33 -04:00
386f17779b 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.
2024-10-03 14:53:52 -04:00
ea7396ff53 Sleep timer added.
A dely of 1 second has been added to keep the MusicBrainz API from dropping requests (503 errors).
2024-09-30 22:06:30 -04:00
66ce579992 Add check for config in .local directory 2024-09-30 17:03:56 -04:00
6f7e69411b Update code to remove a trialing _ from the artist name. 2024-09-25 21:09:10 -04:00
297e7876f2 Change to use python3
Had been set to python3.12 for the use of a specific library. This is no longer necessary as that library is not being used.
2024-09-20 13:24:34 -04:00
3eb993e3c4 mb_confidence now working as a variable.
The value from config.ini is returned as a string. It needs to be cast to an int before use.
2024-09-20 13:17:35 -04:00
370151373c Add mb_confidence as a configurable variable.
Update the project main and api_calls.py to get and use a confidence value set in config.ini.
2024-09-20 13:03:57 -04:00
d6060c2e61 MVP stage working.
The combination of getting an artist ID from MusicBrainz that is then used to pull an image from FanArt.TV seems to work.
2024-09-20 12:58:58 -04:00
4c6bd5aeee Get a list of directries. 2024-09-17 15:20:46 -04:00