Commit Graph
19 Commits
Author SHA1 Message Date
David Logie 785f8b7a5c Make aliases-as-credits functionality opt-in.
This feature was introduced in 2.10 but results a lot of data being
overwritten with (potentially) incorrect data the next time a user runs
`mbsync` over their library.

To make this less of a "breaking" change, make this feature opt-in. The
users who want this large change can enable the functionality.
2026-05-29 17:25:00 +01:00
Terry Chen e546e02596 Clarify MusicBrainz extra_tags defaults 2026-04-25 23:29:17 -04:00
Šarūnas Nejus ae3a2e5729 Fix redirect URLs 2026-03-06 11:28:29 +00:00
Šarūnas Nejus aeee7b6da4 Musicbrainz: Fix support for alias, tracks extra tags 2026-02-07 22:26:52 +00:00
Šarūnas Nejus ca0b3171cc musicbrainz: access the custom server directly, if configured 2025-12-20 01:35:51 +00:00
Aidan EpsteinandŠarūnas Nejus d7636fb0c3 Apply suggestions from code review
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
2025-11-11 13:18:51 -08:00
Aidan EpsteinandŠarūnas Nejus 9e7d5debdc Allow selecting either tags or genres in the includes, defaulting to genres
Genres is a filtered list based on what musicbrainz considers a genre,
tags are all the user-submitted tags. [1]

1. https://musicbrainz.org/doc/MusicBrainz_API#:~:text=Since%20genres%20are,!).

Also apply suggestions from code review

Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
2025-11-11 20:01:37 +00:00
Šarūnas Nejus 498b14ee1d Convert autotagger plugin docs to use conf role 2025-10-19 01:34:33 +01:00
Šarūnas Nejus f8887d48b6 Add deprecation warning for <plugin>.source_weight 2025-10-10 20:36:33 +01:00
Šarūnas Nejus 455d620ae0 Fix data source penalty application logic
The data_source penalty was not being calculated correctly because
`_get_distance` was being called for **all** enabled metadata plugins
which eventually meant that matches were being penalised needlessly.

This commit refactors the distance calculation to:
- Remove the plugin-based track_distance() and album_distance() methods
  that were applying penalties incorrectly
- Calculate data_source penalties directly in track_distance() and
  distance() functions when sources don't match
- Use a centralized get_penalty() function to retrieve plugin-specific
  penalty values via a registry with O(1) lookup
- Change default data_source_penalty from 0.0 to 0.5 to ensure
  mismatches are penalized by default
- Add data_source to get_most_common_tags() to determine the likely
  original source for comparison

This ensures that tracks and albums from different data sources are
properly penalized during matching, improving match quality and
preventing cross-source matches.
2025-10-10 20:36:33 +01:00
Šarūnas Nejus 01e2eb4665 Add default config yaml to each data source docs 2025-10-10 20:36:33 +01:00
Šarūnas Nejus a674fd3095 musicbrainz: Rename searchlimit config option to search_limit 2025-08-31 18:48:46 +01:00
Šarūnas Nejus ab5acaabb3 Reformat all docs using docstrfmt 2025-08-10 16:25:05 +01:00
Šarūnas Nejus 769dcdc88a Docs: fix linting issues 2025-08-10 16:16:02 +01:00
Šarūnas Nejus 6487893315 Synchronise docs with the actual supported extra_tags 2025-05-18 20:09:51 +01:00
Šarūnas Nejus e981fb1aea Deprecate musicbrainz.enabled configuration 2025-05-17 03:32:00 +01:00
Šarūnas Nejus 7ff73d9747 musicbrainz: set default config in the code 2025-05-17 03:31:59 +01:00
Šarūnas Nejus 736d7d5fd0 Make musicbrainz docs follow the typical style 2025-05-17 03:31:59 +01:00
Šarūnas Nejus df56bfeec9 Move musicbrainz docs to a separate file 2025-05-17 03:31:59 +01:00