10 Commits

Author SHA1 Message Date
dc4e83b133 Clean api code
Clean up the formatting.
2025-02-24 13:15:53 -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
883f594f4f Fix the output path of Artist Background.
The artist background had been saving to the folder the script was run from. This has now been resolved.
2024-10-14 11:08:17 -04:00
c5ffadd1f0 Get the artist background.
Adds the artist background as a possible source of artist image.
2024-10-14 10:34:43 -04:00
c01b4cdcdd Send a useragent in the request header to MB.
MusicBrainz desires an identifying header in the requests made to its API. This is now included.
2024-09-30 22:05:31 -04:00
6f7e69411b Update code to remove a trialing _ from the artist name. 2024-09-25 21:09:10 -04:00
fe8a4c2410 Add fetching of hdmusiclogo if artistthumb fails.
This will catch a few more artists and at least place something in their directory.
2024-09-20 14:12:54 -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