Repository navigation
artwork‐config.ini Configuration Options
William Jacoby edited this page Mar 24, 2025
·
3 revisions
The artwork-config.ini file is used to configure the behavior of the scripts in the MusicScripts project. Below is a breakdown of each section and its options.
This section contains settings for interacting with the MusicBrainz API.
- Description: Your email address, used to identify your application to the MusicBrainz API.
- Purpose: Required by MusicBrainz to track API usage and contact you if necessary.
-
Example:
useragent_email = your.email@example.com
This section contains API keys and credentials for third-party services.
- Description: Your Last.fm API key, used to fetch album artwork from Last.fm.
- Purpose: Required for accessing Last.fm's API.
-
Example:
lastfm-apikey = your_lastfm_api_key
This section controls the behavior of the scripts.
- Description: Whether to prioritize high-resolution artwork.
-
Values:
TrueorFalse - Purpose: If enabled, the script will attempt to fetch high-resolution artwork from sources like iTunes and MusicBrainz.
-
Example:
USE_HIRES = True
- Description: The minimum resolution (in pixels) for artwork to be considered valid.
- Purpose: Ensures that low-resolution artwork is skipped or replaced.
-
Example:
MIN_RES = 600
- Description: Whether to use fallback sources if the primary source fails.
-
Values:
TrueorFalse - Purpose: If enabled, the script will attempt to fetch artwork from secondary sources (e.g., Last.fm) if the primary source (e.g., iTunes) fails.
-
Example:
USE_FALLBACK = True
- Description: Whether to prioritize high-resolution artwork over other sources.
-
Values:
TrueorFalse - Purpose: If enabled, high-resolution artwork will be preferred, even if other sources provide valid artwork.
-
Example:
USE_HIRES_PRIORITY = True
- Description: Whether to use MusicBrainz as a source for artwork.
-
Values:
TrueorFalse - Purpose: If enabled, the script will fetch artwork from MusicBrainz's Cover Art Archive.
-
Example:
USE_MUSICBRAINZ = True
- Description: Whether to skip low-resolution artwork entirely.
-
Values:
TrueorFalse -
Purpose: If enabled, the script will not fetch or embed artwork below the
MIN_RESthreshold. -
Example:
NO_LOW_RES = False
This section defines the directories used by the scripts.
- Description: The root directory of your music library.
- Purpose: Specifies where the scripts should look for music files.
-
Example:
rootmusicdir = /media/william/NewData/Music/MP3B/
This section contains settings specific to the id3tocovr.py script.
- Description: The resolution (in pixels) to which cover art should be resized.
- Purpose: Ensures consistency in the size of embedded artwork.
-
Example:
TEMP_RES = 600
Here’s an example of a complete artwork-config.ini file:
[musicbrainz] useragent_email = your.email@example.com [credentials] lastfm-apikey = your_lastfm_api_key [settings] USE_HIRES = True MIN_RES = 600 USE_FALLBACK = True USE_HIRES_PRIORITY = True USE_MUSICBRAINZ = True NO_LOW_RES = False [paths] rootmusicdir = /home/username/MusicToOrganize/ [cover_art_script] TEMP_RES = 600
- Ensure all paths are valid and accessible.
- Replace placeholder values (e.g.,
your.email@example.com,your_lastfm_api_key) with your actual credentials. - Adjust settings according to your preferences and requirements.