Download artist art based on their MBID. This node.js program reads a json based music file as used by JSMusicDB, which structure is based on scanner.py. For each found artist both fanart and theaudiodb are queried in order to find art for the artist. If a lot of artists need to be queried a rate-limit can occur. If that is the case the program will sleep for 1 minute and then try again. Please be patient while we do our bes to find all the art.
The following variables should be set in
MUSIC_FILE: full path to your JSMusicDB compatible music file; defaults to
ART_FOLDER: the output folder for the art images; defaults to
LASTFMAPIKEY: your last.fm API key. Used to fetch meta data about the found artist. Mainly used for rapid MBID lookup.
FANARTAPIKEY: your fanart API key. Used for looking up missing art at fanart.
Art is downloaded to
ART_FOLDER is not specified in
The output logs are stored in
./output and will contain 2 parts:
artists.jsona map of all cached artist <> MBID pairs found. This is used to speed up the process next ti you run the application.
artists-without-art.jsona map of all artists <> MBID for which no art could be found, neither cached or online. You can use the MBID to save your own art for example.