Skip to content

Navigation Menu

Sign up

artwork‐config.ini Configuration Options

William Jacoby edited this page Mar 24, 2025 · 3 revisions

artwork-config.ini Configuration Options

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.


[musicbrainz]

This section contains settings for interacting with the MusicBrainz API.

useragent_email

  • 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

[credentials]

This section contains API keys and credentials for third-party services.

lastfm-apikey

  • 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

[settings]

This section controls the behavior of the scripts.

USE_HIRES

  • Description: Whether to prioritize high-resolution artwork.
  • Values: True or False
  • Purpose: If enabled, the script will attempt to fetch high-resolution artwork from sources like iTunes and MusicBrainz.
  • Example:
    USE_HIRES = True

MIN_RES

  • 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

USE_FALLBACK

  • Description: Whether to use fallback sources if the primary source fails.
  • Values: True or False
  • 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

USE_HIRES_PRIORITY

  • Description: Whether to prioritize high-resolution artwork over other sources.
  • Values: True or False
  • Purpose: If enabled, high-resolution artwork will be preferred, even if other sources provide valid artwork.
  • Example:
    USE_HIRES_PRIORITY = True

USE_MUSICBRAINZ

  • Description: Whether to use MusicBrainz as a source for artwork.
  • Values: True or False
  • Purpose: If enabled, the script will fetch artwork from MusicBrainz's Cover Art Archive.
  • Example:
    USE_MUSICBRAINZ = True

NO_LOW_RES

  • Description: Whether to skip low-resolution artwork entirely.
  • Values: True or False
  • Purpose: If enabled, the script will not fetch or embed artwork below the MIN_RES threshold.
  • Example:
    NO_LOW_RES = False

[paths]

This section defines the directories used by the scripts.

rootmusicdir

  • 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/

[cover_art_script]

This section contains settings specific to the id3tocovr.py script.

TEMP_RES

  • 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

Example Configuration File

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

Notes

  • 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.

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /