Commit Graph
1324 Commits
Author SHA1 Message Date
Henry 327d237d9e Merge branch 'master' into titlecase 2025-11-22 00:38:51 -08:00
Henry 83c16cbb5d Rewrite tests, add cached_property decorators, add seperator feature 2025-11-22 00:16:33 -08:00
asardaes 9c37f94171 Add album template value in ftintitle plugin 2025-11-21 18:31:59 +01:00
Henry dcac9bac02 Add word boundary support, fix The artist behavior 2025-11-16 17:57:59 -08:00
Henry b3e6aef02f merge with master 2025-11-15 16:12:24 -08:00
Henry a6bda748ce Added support for pre-tag selection stage 2025-11-14 19:08:14 -08: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
Henry Oberholtzer c89d0c1637 add replace 2025-11-09 17:06:23 -08:00
Henry Oberholtzer 5628232bc4 add the_artist 2025-11-08 17:33:54 -08:00
asardaes 040b2dd940 Add custom_tags_only mode for mbpseudo plugin 2025-11-01 13:52:14 +01:00
asardaes cb758988ed Fix data source penalty for mbpseudo 2025-11-01 13:52:14 +01:00
asardaes defc602310 Update docs for mbpseudo plugin 2025-11-01 13:52:11 +01:00
Doron Behar e181ebeaae importsource: Add new plugin (+docs/tests/changlog) 2025-10-29 08:50:01 +01:00
Henry f6ac3db67b add to index.rest, fix links, reformat, lint 2025-10-27 21:18:49 -07:00
Henry 2bb072fde1 fixes 2025-10-26 20:20:35 -07:00
Henry 2f88ca0101 pretty much set to go 2025-10-26 16:34:18 -07:00
Henry 77f2f9eecb Merge branch 'master' into titlecase 2025-10-25 19:46:40 -07:00
Henry a1844b1caa lint and format 2025-10-23 18:27:29 -07:00
Henry 72008eea7c merge with master 2025-10-23 18:25:58 -07:00
Henry 5bce774c33 initial docs draft, add to before choice import stage 2025-10-23 18:23:54 -07:00
J0J0 Todos 4b1e5056d5 lastgenre: Document tuning log -vvv 2025-10-23 19:02:27 +02:00
Jacob Danell bb541e22c3 Lint the docs 2025-10-20 15:28:33 +02:00
Ember Light 00e3da1a92 Merge branch 'master' into ftintitle-continue-even-if-albumartist-and-artist-is-the-same 2025-10-20 15:24:43 +02:00
Jacob Danell 027b775fcd Change arg name 2025-10-20 15:22:27 +02:00
1275ccf8c1 play plugin: $playlist marker for precise control where the playlist … (#4728)
…file is placed in the command

## Description

see included doc; placing the playlist filename at the end of command
just isn't working for all players

I have this in use with `mpv`

Co-authored-by: cvx35isl <cvx35isl@users.noreply.github.com>
Co-authored-by: J0J0 Todos <2733783+JOJ0@users.noreply.github.com>
2025-10-19 08:38:20 +02:00
Šarūnas Nejus 9519d47d57 Convert Python 2 URLs to Python 3 2025-10-19 01:37:42 +01:00
Šarūnas Nejus 498b14ee1d Convert autotagger plugin docs to use conf role 2025-10-19 01:34:33 +01:00
Ember Lightandsourcery-ai[bot] adb5b293f0 Update docs/plugins/ftintitle.rst
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-10-16 19:01:29 +02:00
Ember Light 6d2d663d3e Add documentation 2025-10-16 18:49:32 +02:00
henry 0bf248d355 Add custom feat words for ftintitle (#6090)
## Description

For non English tracks (Swedish in my case) feat. words might be
something that ftintitle doesn't pick up.
Eg. for the song `Promoe med Afasi - Inflation`
[https://musicbrainz.org/recording/8e236347-61d6-4e11-9980-52f4cc6b905f](https://musicbrainz.org/recording/8e236347-61d6-4e11-9980-52f4cc6b905f)
the word `med` is `feat.` in Swedish.
With this PR you can add what ever word you wish to match as feat. so it
should cover any kind of language.

The config.yaml could look like this:
ftintitle:
  custom_feat_words: ["med"]

## To Do

<!--
- If you believe one of below checkpoints is not required for the change
you
are submitting, cross it out and check the box nonetheless to let us
know.
  For example: - [x] ~Changelog~
- Regarding the changelog, often it makes sense to add your entry only
once
reviewing is finished. That way you might prevent conflicts from other
PR's in
that file, as well as keep the chance high your description fits with
the
  latest revision of your feature/fix.
- Regarding documentation, bugfixes often don't require additions to the
docs.
- Please remove the descriptive sentences in braces from the enumeration
below,
  which helps to unclutter your PR description.
-->

- [x] Documentation. (If you've added a new command-line flag, for
example, find the appropriate page under `docs/` to describe it.)
- [x] Changelog. (Add an entry to `docs/changelog.rst` to the bottom of
one of the lists near the top of the document.)
- [x] Tests. (Very much encouraged but not strictly required.)
2025-10-14 20:38:02 -07:00
Jacob Danell 83858cd7ca Fixed too long text line 2025-10-14 14:08:30 +02:00
Michael Krieger dc13308784 Remove tests. Update docs. Remove unnecessary return
Remove tests.  Update docs.  Remove unnecessary return.
2025-10-14 03:17:34 +01:00
Michael Krieger b1c87cd98c Change parameter name, add return, add tests
Change the parameter name to omit_single_disc (vs previously zero_disc_if_single_disc)

Add return of 'fields_set' so that, if triggered by the command line `beets zero`, it will still effect the item.write.

Added tests.
2025-10-14 03:17:34 +01:00
Michael Krieger 33b350a612 Adds a zero_disc_if_single_disc to the zero plugin
Adds a zero_disc_number_if_single_disc boolean to the zero plugin for writing to files. Adds the logic that, if disctotal is set and there is only one disc in disctotal, that the disc is not set.

This keeps tags cleaner, only using disc on multi-disc albums. The disctotal is not touched, particularly as this is not usually displayed in most clients.

The field is removed only for writing the tags, but the disc number is maintained in the database to avoid breaking anything that may depend on a disc number or avoid possible loops or failed logic.
2025-10-14 03:17:34 +01:00
Ember Light 717809c52c Better custom_words documentation 2025-10-12 22:40:44 +02:00
Ember Light 992938f0ae Add documentation 2025-10-12 20:58:38 +02:00
Šarūnas Nejus 90ca0a799a Consider unseen tracks in data source matching 2025-10-10 20:36:33 +01:00
Šarūnas Nejus 1f62a928ec Update data source documentation 2025-10-10 20:36: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 203c2176d9 Update data_source_penalty docs 2025-10-10 20:36:33 +01:00
Šarūnas Nejus e6084cd3ee Set default data_source_penalty to 0.0 2025-10-10 20:36:33 +01:00
Šarūnas Nejus 6e5af90abb Rename source_weight -> data_source_mismatch_penalty 2025-10-10 20:36:33 +01:00
Henry f5acdec2b1 Update configuration format. 2025-10-03 14:44:22 -07:00
Henry fcebe8123a Expand documentation 2025-09-30 20:01:35 -07:00
Henry b1903417f4 Add artist credit support, artist name variation support, more flexible featured credit. 2025-09-27 14:29:25 -07:00
Multipixelone 699e0a1272 fixup! add documentation for write_metadata option 2025-09-24 22:11:47 -04:00
Finn 29f55f9911 Merge branch 'master' into metadata_option 2025-09-24 22:02:28 -04:00