| 1 |
.. _data_source_mismatch_penalty: |
| 2 |
|
| 3 |
.. conf:: data_source_mismatch_penalty |
| 4 |
:default: 0.5 |
| 5 |
|
| 6 |
Penalty applied when the data source of a |
| 7 |
match candidate differs from the original source of your existing tracks. Any |
| 8 |
decimal number between 0.0 and 1.0 |
| 9 |
|
| 10 |
This setting controls how much to penalize matches from different metadata |
| 11 |
sources during import. The penalty is applied when beets detects that a match |
| 12 |
candidate comes from a different data source than what appears to be the |
| 13 |
original source of your music collection. |
| 14 |
|
| 15 |
**Example configurations:** |
| 16 |
|
| 17 |
.. code-block:: yaml |
| 18 |
|
| 19 |
# Prefer MusicBrainz over Discogs when sources don't match |
| 20 |
plugins: musicbrainz discogs |
| 21 |
|
| 22 |
musicbrainz: |
| 23 |
data_source_mismatch_penalty: 0.3 # Lower penalty = preferred |
| 24 |
discogs: |
| 25 |
data_source_mismatch_penalty: 0.8 # Higher penalty = less preferred |
| 26 |
|
| 27 |
.. code-block:: yaml |
| 28 |
|
| 29 |
# Do not penalise candidates from Discogs at all |
| 30 |
plugins: musicbrainz discogs |
| 31 |
|
| 32 |
musicbrainz: |
| 33 |
data_source_mismatch_penalty: 0.5 |
| 34 |
discogs: |
| 35 |
data_source_mismatch_penalty: 0.0 |
| 36 |
|
| 37 |
.. code-block:: yaml |
| 38 |
|
| 39 |
# Disable cross-source penalties entirely |
| 40 |
plugins: musicbrainz discogs |
| 41 |
|
| 42 |
musicbrainz: |
| 43 |
data_source_mismatch_penalty: 0.0 |
| 44 |
discogs: |
| 45 |
data_source_mismatch_penalty: 0.0 |
| 46 |
|
| 47 |
.. tip:: |
| 48 |
|
| 49 |
The last configuration is equivalent to setting: |
| 50 |
|
| 51 |
.. code-block:: yaml |
| 52 |
|
| 53 |
match: |
| 54 |
distance_weights: |
| 55 |
data_source: 0.0 # Disable data source matching |
| 56 |
|
| 57 |
.. conf:: source_weight |
| 58 |
:default: 0.5 |
| 59 |
|
| 60 |
.. deprecated:: 2.5 Use `data_source_mismatch_penalty`_ instead. |
| 61 |
|
| 62 |
.. conf:: search_limit |
| 63 |
:default: 5 |
| 64 |
|
| 65 |
Maximum number of search results to return. |