22 Commits

Author SHA1 Message Date
811979cea7 Move configparser code to seperate module
This code is now in its own Class. This is to make it easier to do reporting and updating.
2024-10-16 11:20:14 -04:00
5856541a22 Display version number
The program will now output a version number with the use of either the 'version' or 'help' options.
2024-10-15 15:06:54 -04: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
cbde52eb59 Merge branch 'master' into ratelimiting 2024-10-14 11:17:37 -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
485b565a3f Replace working code in empty file.
api_calls.py had been emptied for some reason. Probably an acidential deletion. The old code has now been placed in the file.
2024-10-13 17:38:03 -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
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
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
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
858d68b491 Fix if statement from previous commit. 2024-09-20 14:01:00 -04:00
f2d21185af Check for artist.png when looking for local art. 2024-09-20 13:58:58 -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
d32681729f Initial commit 2024-09-17 14:55:18 -04:00