Skip to content

Add fetchart option to set the algorithm used to fetch album art. #5902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

redlamb
Copy link

@redlamb redlamb commented Jul 29, 2025

Add configuration option (match) to the fetchart plugin that allows user to set the algorithm used when fetching album art. Possible values are as follows:

  • first (default): Returns the first image that meets the specs defined by the config.
  • max_resolution: Fetch one image from each of the configured sources and return the one with the highest resolution.

Description

Possible solution for #3262. To be nice to backend providers, max_resolution will only download one image from each configured source before selecting the image with the highest resolution.

To Do

  • Documentation.
  • Changelog.
  • Tests.

Add configuration option (`match`) to the fetchart plugin that allows
user to set the algorithm used when fetching album art. Possible values
are as follows:

- `first` (default): Returns the first image that meets the specs
  defined by the config.
- `max_resolution`: Fetch one image from each of the configured sources
  and return the one with the highest resolution.
Copy link

codecov bot commented Jul 29, 2025

Codecov Report

❌ Patch coverage is 85.71429% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.73%. Comparing base (2680750) to head (00ea58d).

Files with missing lines Patch % Lines
beetsplug/fetchart.py 85.71% 2 Missing and 2 partials ⚠️
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant