Commit Graph
4460 Commits
Author SHA1 Message Date
Šarūnas Nejus 12a1eea875 Add a note to the changelog 2026-04-19 20:00:01 +01:00
Alok Saboo 7d756d7b23 Merge branch 'master' into spotify_batch 2026-04-19 11:37:16 -04:00
Sebastian Mohr f7ed69bf29 Minified comments and materialize iterators 2026-04-19 15:15:41 +02:00
Sebastian Mohr 0696cdcdf4 Parallelize candidate lookup for metadata plugins. 2026-04-19 15:15:29 +02:00
Alok Saboo b42d6efbc0 Merge branch 'master' into spotify_batch 2026-04-19 08:46:23 -04:00
Eric Masseran 8df8ff7c22 Add changelog 2026-04-19 11:07:20 +02:00
Spencer Nystrom f6b44c50de Update docs for archive deletion on move 2026-04-18 22:20:16 -07:00
Spencer Nystrom 5f241353da Remove archive on import during move mode
This modifies the `cleanup` method on the `ArchiveImportTask` to remove the original archive file on successful import when `move: yes`.

I decided to do this such that partial imports do not destructively remove the archive. Perhaps this would be better as a configuration option, but I think that may go beyond the scope for this initial feature.

Additionally, I added unit tests for this behavior under the *old* test framework since existing helpers are present for the archive backend setup. This way we minimize the diff and maximize probability that my test is behaving correctly. I will gladly port this entire archive test section to pytest in a future PR.

Closes #1663.
2026-04-18 22:00:43 -07:00
Alok Saboo 99b81c550f lint 2026-04-18 21:16:39 -04:00
Alok Saboo 92481b6c35 Merge branch 'spotify_batch' of https://github.com/arsaboo/beets into spotify_batch 2026-04-18 21:08:04 -04:00
Alok Saboo 826aaeb4b3 Address reviewer comments 2026-04-18 21:07:48 -04:00
Alok Saboo bd6c7378a9 Merge branch 'master' into spotify_batch 2026-04-18 18:32:50 -04:00
Finn e7351987ef docs(library): add changelog entry for clutter 2026-04-17 21:55:11 +01:00
Šarūnas Nejus 348eb9555f Update docs 2026-04-17 09:19:15 +01:00
Šarūnas Nejus 5528a2b7f5 Update docs 2026-04-16 09:02:28 +01:00
Christopher Larson 5bc11ea736 inline: make the album/item available directly
There have been multiple requests, in the past, for the ability to use
plugin fields in inline fields. This has not previously been available.
From what I can tell, it was intentionally left unavailable due to
performance concerns.

The way the item fields are made available to the inline python code
means that all fields are looked up, whether they're actually used by
the code or not. Doing that for all computed fields would be a
performance concern.

I don't believe there's a good way to postpone the field computation, as
python eval and compile requires that globals be a dictionary, not a
mapping. Instead, we can make available the album or item model object
to the code directly, and let the code access the fields it needs via
that object, resulting in postponing the computation of the fields until
they're actually accessed.

This is a simple approach that makes the computed and plugin fields
available to inline python, which allows for more code reuse, as well as
more options for shifting logic out of templates and into python code.
The object is available as `db_obj`.

Examples:

    item_fields:
      test_file_size: db_obj.filesize

    album_fields:
      test_album_path: db_obj.path
      # If the missing plugin is enabled
      test_album_missing: db_obj.missing

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2026-04-15 11:59:19 -07:00
Šarūnas Nejus 9d64f00a77 Merge branch 'master' into fix/mbpseudo-raw-data 2026-04-15 00:26:05 +01:00
Martin Caspersen fd19e5c973 docs: fix formatting 2026-04-14 23:17:34 +00:00
Martin Caspersen ca69f00b38 docs: simplify changelog 2026-04-14 23:10:08 +00:00
Andrew Yang 85d7a428fb changelog: note mbpseudo compatibility side-effect and reference #6441
The registry lookup fix for #6212 also resolves #6441, where chroma
bypassed mbpseudo's plugin swap by holding a second MusicBrainzPlugin
instance outside the plugin registry.
2026-04-14 19:07:53 -04:00
Martin Caspersen 0ff0fc8110 Merge branch 'beetbox:master' into fix/mbpseudo-raw-data 2026-04-15 01:05:13 +02:00
Andrew Yang e446554211 chroma: address review feedback
- Use @cached_property named `mb` (per snejus/semohr) instead of a
  helper method, reducing the diff relative to the original code
- Move changelog entry to the Unreleased section (per snejus)
- Refactor tests to use PluginMixin from beets.test.helper (per
  semohr) instead of manually managing beets.plugins._instances
2026-04-15 00:03:23 +01:00
Andrew Yang 692ef4a923 chroma: gate candidates on the musicbrainz plugin being enabled
The chroma plugin uses Acoustid fingerprinting, which returns MusicBrainz
release and recording IDs. It then unconditionally resolved those IDs
through a privately instantiated MusicBrainzPlugin, so MusicBrainz-sourced
candidates appeared during tagging even when the user had not enabled the
musicbrainz plugin.

Replace the direct MusicBrainzPlugin() instantiation with a lookup through
the metadata-source registry via get_metadata_source("musicbrainz"). When
that returns None, short-circuit both candidates() and item_candidates()
to return empty. This also fixes an incidental issue where the private
instance bypassed any plugin that swaps the musicbrainz plugin at runtime
(e.g. mbpseudo).

Acoustid fingerprinting itself is unaffected — acoustid_id and
acoustid_fingerprint item fields are still populated as before.

Fixes #6212
2026-04-15 00:03:23 +01:00
Šarūnas Nejus 148e0ac81b Merge branch 'master' into fix-mpeglayer3-wav-import 2026-04-14 23:45:47 +01:00
Elaine Chen e7247b54aa Moved remux function to util.extension, fixed exception handling, added docs 2026-04-14 15:53:43 -04:00
Elaine Chen 4478ece59c Fix docs formatting 2026-04-14 15:01:46 -04:00
Sebastian Mohr 396f29262e Add a link to the aisauce plugin. 2026-04-14 20:20:45 +02:00
Elaine Chen 480e67c7bf Replaced ffmpeg with Python extraction, add docs, and second test 2026-04-14 12:39:08 -04:00
Alok Saboo cd06e620ce Resolve merge conflict in changelog.rst 2026-04-13 20:35:16 -04:00
Alok Saboo 72d76f60a1 Merge upstream/master into spotify_batch branch 2026-04-13 20:25:32 -04:00
Šarūnas Nejus aab4dffb48 Add a note to the changelog 2026-04-12 16:21:30 +01:00
Elaine Chen 8ce58922ad Move changelog entry to Unreleased section 2026-04-11 18:13:19 -04:00
Elaine Chen 8557f5daf1 Move changelog entry to top of Bug fixes section 2026-04-11 18:09:30 -04:00
elainec2024 ec26ab806c Merge branch 'master' into fix-mpeglayer3-wav-import 2026-04-11 18:06:05 -04:00
Elaine Chen 8ea269362c Remux WAVE_FORMAT_MPEGLAYER3 WAV files to MP3 during import
WAV files containing an MP3 stream (WAVE_FORMAT_MPEGLAYER3, wFormatTag=0x0055)
were silently imported with incorrect metadata and format reported as WAVE instead of MP3.

When a WAV file fails to open due to FileTypeError, check if it is a
MPEGLAYER3 WAV. If it is, use ffmpeg to remux it to a proper MP3 file,
removing the WAV container. The original WAV file is deleted after successful
remuxing.

Adds a regression test and test fixture.

Fixes #6455
2026-04-11 17:36:13 -04:00
Martin Caspersen 74348330d5 Merge branch 'master' into fix/mbpseudo-raw-data 2026-04-11 20:08:36 +02:00
Aidan Epstein c6409d2e58 Retry listenbrainz requests for temporary failures 2026-04-11 08:14:27 -07:00
Šarūnas Nejus 8673ea9a4d Update docs 2026-04-11 13:02:42 +01:00
Šarūnas Nejus 31bf020988 Add changelog note 2026-04-11 13:01:41 +01:00
snejus 018dba08cd Increment version to 2.9.0 2026-04-11 11:55:59 +00:00
Sebastian Mohr 2a3bf6064c Added changelog entry. 2026-04-11 11:18:43 +01:00
Šarūnas Nejus 2ff7887725 Apply all matching rules to a field 2026-04-10 14:54:57 +01:00
Šarūnas Nejus e21f56fc60 Update docs 2026-04-10 10:43:25 +01:00
J0J0 Todos 570d1d3bdc Changelog for #6449 genre ignorelist 2026-04-09 22:42:38 +02:00
J0J0 Todos fc367165f9 lastgenre: Docs for genre ignorelist feature 2026-04-09 22:42:38 +02:00
Maxr1998 633703832d Address further review feedback 2026-04-09 16:18:40 +02:00
Maxr1998 08af801c30 Address review feedback 2026-04-09 10:46:40 +02:00
Maxr1998 9bc865f6f3 Add changelog 2026-04-09 10:40:59 +02:00
Martin Caspersen 0e97b278f4 fix(mbpseudo): add regression test for fix and changelog 2026-04-09 10:18:20 +02:00
Mathilde Gilles e49398b2f5 Merge branch 'master' into fetchart-webp 2026-04-08 16:38:02 +02:00