Commit Graph
316 Commits
Author SHA1 Message Date
Théophile Bastian 666c412b0e plugins/web: fix endpoints /…/values/…
Following #4709 and #5447, the web plugin used single-quotes (ie. string
litteral) in the SQL query for table columns. Thus, for instance, the query
`GET /item/values/albumartist` would return the litteral "albumartist"
instead of a list of unique album artists.
2025-11-15 21:02:38 +01:00
Aidan Epstein 672bf0bf41 Add tests. 2025-11-11 17:08:46 -08:00
Šarūnas Nejus d486885af3 pyupgrade Python 3.10 2025-11-08 12:09:52 +00:00
asardaes c087851770 Prefer alias if import languages not defined 2025-11-01 13:52:14 +01: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 160297b086 Add tests for mbpseudo plugin 2025-11-01 13:51:34 +01:00
J0J0 Todos 02a662e923 importfeeds: Fix tests
- Use self.config instead of global config, which was interfering whith
  other plugin tests (test_importsource) when run alongside (eg in CI)
- Rename test
2025-10-29 08:50:01 +01:00
Doron Behar e181ebeaae importsource: Add new plugin (+docs/tests/changlog) 2025-10-29 08:50:01 +01: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
Ember Light ca8df30ec3 Add missing test parameter 2025-10-16 19:06:56 +02:00
Ember Light f275835cd3 Add test 2025-10-16 18:49:24 +02:00
Šarūnas Nejus 88011a7c65 Show genre change using show_model_changes 2025-10-15 11:14:26 +01:00
Šarūnas Nejus c2d5c1f17c Update test 2025-10-15 09:55:51 +01:00
J0J0 Todos 654c14490e lastgenre: Refactor test_pretend to pytest 2025-10-15 09:54:41 +01:00
J0J0 Todos d617e67199 lastgenre: Fix test_pretend_option
only one arg is passed to the info log anymore.
2025-10-15 09:52:32 +01: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
Michael Krieger df8cd23ae7 Add back tests as they were.
Add back tests as they were.
2025-10-14 03:17:34 +01: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
Ember Light b95a17d8d3 remove feat from custom_feat_words 2025-10-12 22:40:27 +02:00
Ember Light 37a5f9cb15 Add custom feat words 2025-10-12 20:47:51 +02:00
J0J0 Todos a642609faa Merge branch 'master' into ffnp 2025-10-06 11:06:10 +02:00
Henry 267428f0a4 Merge branch 'master' of github.com:henry-oberholtzer/beets into discogs-anv-support 2025-10-03 15:05:48 -07:00
Henry f5acdec2b1 Update configuration format. 2025-10-03 14:44:22 -07:00
Sebastian Mohr 4782e96599 Move vfs.py to beetsplug._utils package to avoid polluting core namespace (#6017)
This PR moves the `vfs.py` module, which is only used by plugins, to
avoid polluting the main beets namespace. Also exposes the `vfs` and
`art` module from beets with a deprecation warning.
2025-10-01 12:28:18 +02:00
Vrihub 5f9800ec43 Merge branch 'master' into ffnp 2025-09-30 17:41:13 +02:00
Vrihub 638afc3d2c Refactor tests using pytest 2025-09-30 15:54:33 +02:00
Henry c44c535b22 Fully parametrize testing 2025-09-28 10:49:56 -07:00
Henry b1903417f4 Add artist credit support, artist name variation support, more flexible featured credit. 2025-09-27 14:29:25 -07:00
Henry 1cf2254e74 Merge branch 'master' into dev 2025-09-27 11:48:52 -07:00
Henry dd57c0da2d improve flexibility of use of anv on artist tracks 2025-09-27 10:42:29 -07:00
Henry 85201a4e17 merge with master branch 2025-09-27 08:04:53 -07:00
pSpitzner cc0024e089 Spotify tests are now consistent with quote change 2025-09-27 13:22:41 +02:00
Henry 1e677d57c1 Updates to documentation 2025-09-26 21:37:18 -07:00
Henry 0ec6689395 test updates, one case still failing 2025-09-26 17:56:25 -07:00
Henry 5a43d6add4 Testing and implemented anv method, also added Featuring customizable string 2025-09-26 16:01:33 -07:00
Henry 533aa6379b Test working, need to implement anv now 2025-09-25 22:38:02 -07:00
Henry Oberholtzer 9c8172be12 Write initial ANV test 2025-09-26 01:55:28 +02:00
Henry b61306ea0d Fixes, test improvement, rebase to master 2025-09-25 08:39:38 -07:00
Henry 43f2d423fa testing, updated changelog 2025-09-25 08:19:46 -07:00
Henry 876c57c8b3 Featured artists extracted and appended, need to see if join needs to be variable 2025-09-25 08:19:46 -07:00
Henry 5c03672874 Test written, beginning fix 2025-09-25 08:19:46 -07:00
Šarūnas Nejus 787d9b4a40 Merge branch 'master' into discogs-disambiguation-fix 2025-09-22 21:50:34 +01:00
Henry Oberholtzer 8e644157e8 Refactor tests, adjust changelog, move config option to new features. 2025-09-22 19:47:50 +02:00
Trey Turner 042b5d64eb test(ftintitle): fix flake, massage mypy 2025-09-21 22:27:11 +01:00
Trey Turner 6ad7c5489c test(ftintitle): parameterize tests 2025-09-21 22:27:11 +01:00
Trey Turner f0a6059685 feat(FtInTitle): support tracks by artists != album artist 2025-09-21 22:27:11 +01:00