github beetbox/beets v2.15.0
Release v2.15.0

49 minutes ago

Beets now requires Python 3.11 or later since support for EOL Python 3.10 has been dropped.

New features

  • AutoBPM Plugin: Add -b/--start-bpm option to override beat_track_kwargs.start_bpm from the command line.
  • BPD Plugin, ReplayGain Plugin: Support GStreamer on Windows, where the BPD Plugin and ReplayGain Plugin extras now install GStreamer, its plugins and the Python bindings, so that neither plugin needs a separate GStreamer installation there.
  • Edit Plugin: edit Candidates now edits the candidate on screen instead of asking for a candidate number again. It still asks when chosen from the candidate list.
  • LastGenre Plugin: Improve original-genre fallback by applying aliases before whitelist filtering, while preserving existing genres regardless of the configured count. 🐛 (#6890)
  • LastGenre Plugin: Use the shared lastfm.api_key setting (also used by LastImport Plugin) so that a personal Last.fm API key can be used instead of beets's built-in one.
  • LastGenre Plugin: When no album genre is found for the primary albumartist, the plugin now attempts to fetch genres for each artist listed in the multi-valued albumartists field before falling back to the artist source. 🐛 (#6238)
  • Lyrics Plugin: Add support for a custom lrclib backend URL. You can now use the lrclib.url option in the configuration file. 🐛 (#7118)
  • MPDUpdate Plugin: Add support for connecting to mpd via abstract socket.
  • Smart Playlist Plugin: The relative_to option and --relative-to flag now accept library to generate paths relative to the library directory, matching the Playlist Plugin plugin. 🐛 (#5348)
  • SubsonicUpdate Plugin: Add a SubsonicUpdate Plugin command that requests a library update from the Subsonic server on demand, and an auto option that disables the updates triggered by library and smart playlist changes. 🐛 (#6741)
  • Track Disambiguation (%tunique{}): New path template function to disambiguate tracks within the same album that share the same title (e.g., identical-titled tracks on different discs). It has the same arguments as %aunique; the default identifiers are title and the default disambiguators are track disc artist.
  • Add -l / --limit LIMIT to other query-based commands. Commands that already use -l for another purpose accept --limit LIMIT only.
  • New empty_component_replace option: a string that fills in for an empty path component, so a path template field that resolves to nothing no longer collapses the directory level it would have created. Unset by default, which keeps the current behaviour. 🐛 (#359)
  • The -c/--config command-line option can now be given more than once. Each file is overlaid on top of the previous ones, so a configuration can be composed from several files in a single run.

Bug fixes

  • AcousticBrainz Submit Plugin: Handle invalid JSON output from the extractor gracefully by decoding with error handling and skipping tracks that produce unparseable data, instead of crashing. 🐛 (#3527)
  • BPD Plugin: Report song paths with / separators on every platform, so that the paths clients receive can be used to address songs on Windows too.
  • Chromaprint/Acoustid Plugin: Fix file descriptor exhaustion when fingerprinting large libraries. The chroma plugin now uses the fpcalc binary directly (via force_fpcalc=True) instead of routing through audioread's GStreamer backend, which leaked fds on fingerprinting errors. 🐛 (#5171)
  • Deezer Plugin: deezerupdate now stores each track's Deezer rank instead of 1. 🐛 (#7106)
  • Discogs Plugin: Normalize Digital Media and WEB to Discogs' File format when using media in extra_tags search filters.
  • Edit Plugin: Add a Back option to the "edit Candidates" prompt so it is possible to return to the importer prompt without picking a candidate. 🐛 (#6701)
  • FetchArt Plugin: Do not offer the same local art file twice when a subdirectory holds a file named like one in the album folder.
  • FetchArt Plugin: Request 10000x10000-999 high-resolution artwork from the iTunes Store instead of deprecated 100000x100000-999, fixing an issue where Apple's CDN rejected image requests with HTTP 400 Bad Request.
  • Hook Plugin: Keep backslashes intact when splitting hook commands on Windows, where they separate path components rather than escape the next character, so that commands taking an absolute path now receive it in one piece.
  • import command Fix importing from a logfile (--from-logfile option) when paths contain ; \ characters. 🐛 (#4941)
  • import command: Detect the format of extension-less files on Windows, where the ffprobe output was left unparsed because of its line endings.
  • import command: Handle the Merge all duplicate action when import.autotag is no, merging new tracks into the existing album instead of creating a duplicate album entry. 🐛 (#7178)
  • ImportAdded Plugin: The preserve_write_mtimes option no longer writes to the item's source file when beet convert writes the converted file, which previously crashed with a PermissionError when the source file was read-only. 🐛 (#6954)
  • Info Plugin: Fix a TypeError when printing list-valued tag fields with non-string elements, such as synced_lyrics. 🐛 (#7183)
  • LastGenre Plugin: An empty or null whitelist or canonical setting now raises a clear error instead of silently falling back to the default file. Use yes, no or a file path. 🐛 (#5994)
  • LastGenre Plugin: For Various Artists albums, each track now casts a single vote for its top genre, instead of one vote per returned tag. Track genres go through the same aliasing, whitelist, ignorelist and canonicalization steps as in the other stages, so with canonicalization a genre that is not on the whitelist can still vote through its whitelisted parent. Genres tied for the most votes are all kept (limited by count) instead of an arbitrary one, and the vote results are logged at debug level. 🐛 (#6931)
  • LastGenre Plugin: The genre changes are no longer printed during an import (unless it is verbose), where they could appear on top of the importer's prompt for the next album and make the import look frozen. The LastGenre Plugin command still prints them. 🐛 (#6830)
  • Lyrics Plugin: Keep synced LRCLib lyrics that end with a blank line instead of silently falling back to plain lyrics. 🐛 (#7070)
  • Lyrics Plugin: Store lyrics_instrumental, lyrics_backend and lyrics_url for instrumental matches on items without lyrics, which were previously discarded.
  • Lyrics Plugin: The google source now logs a clear message when Google refuses the search request, and the documentation warns that the Google Custom Search JSON API is closed to new customers and will be discontinued on January 1, 2027. 🐛 (#6761)
  • MBSync Plugin: Set medium_total to the number of tracks remaining after configured data and video filters. 🐛 (#6836)
  • Missing Plugin: Fix the documentation of the --release-types command-line option and the release_types configuration option, which still used their old names. 🐛 (#7172)
  • MusicBrainz Plugin: When a release's media differ only in a parenthetical, like the layers of a hybrid SACD (Hybrid SACD (CD layer), Hybrid SACD (SACD layer, 2 channels)) or the sides of a DualDisc, the album's media is now their common format (Hybrid SACD) instead of the generic Media. Releases mixing different formats still get Media.
  • MusicBrainz Submit Plugin: Sort printed tracks by disc and then by track number, so multi-disc albums with shared track numbers stay grouped by disc. 🐛 (#4061)
  • MusicBrainz Submit Plugin: The "Print tracks" (p) and "Open files with Picard" (o) prompt choices are offered again when the importer has no recommendation for a match (for example when no candidates were found). 🐛 (#7031)
  • Permissions Plugin: Stop applying permissions to directories outside the library. A library directory of /music previously also matched siblings sharing its prefix, such as /music2, and the plugin changed the mode of their parent directories.
  • Play Plugin: Keep a path absolute instead of crashing when relative_to points at another Windows drive, where no relative path between the two exists, and warn about the paths that were left alone.
  • Playlist Plugin: Ignore blank lines in M3U playlists.
  • Playlist Plugin: Match playlist entries that point inside the active library directory when paths are stored library-relative. 🐛 (#6784)
  • ReplayGain Plugin: Fix ReplayGain metaflac backend altering input files. 🐛 (#6915)
  • ReplayGain Plugin: Stop the exception watcher thread from busy-waiting while the thread pool is open. It held a CPU core at 100% and starved the other threads, making beet replaygain on a large library run for hours without starting any analysis. 🐛 (#5449)
  • Titlecase Plugin: Fix beet completion crashing with OptionConflictError when the plugin is enabled.
  • Titlecase Plugin: Fix characters being dropped or duplicated when separators is combined with a Replace Plugin rule that changes the length of the text. 🐛 (#6300)
  • Unimported Plugin: ignore_subdirectories now matches whole path components instead of a string prefix, so pod no longer also skips podcasts. A configured value with a trailing slash is matched correctly as well.
  • update command: A filesystem error while moving an item or album is now reported and the update continues with the rest of the library, instead of aborting and leaving it partially updated. 🐛 (#2419)
  • Web Plugin: Fix relative library paths not resolving across request threads in web plugin endpoints.
  • Zero Plugin: Preserve paired and aliased fields (such as genre and genres, artist and artists) when using keep_fields. 🐛 (#7069)
  • Add alternatives.item_updated to the typed event list so Hook Plugin can listen to it. 🐛 (#7036)
  • Autotagger: Match tracks by their MusicBrainz release track ID as well as their recording ID. Media of one release can share recordings, like the CD and SACD layers of a hybrid SACD, and files from the second medium were assigned to the first medium's tracks, overwriting their release track IDs. When reimporting, this favours the exact release the files were tagged with and penalizes other releases of the same recordings. Items tagged from a source without release track IDs store their track ID in its place, so a MusicBrainz candidate gets this penalty for them, as it already did for the recording ID.
  • Detect ImageMagick on Windows: the version probe kept looking for Convert Plugin after magick had answered and picked up the unrelated built-in Windows tool of that name, reporting the backend as unavailable. 🐛 (#5414)
  • Fix a race condition between concurrent importer threads where updates to state.pickle could lose tagging progress or incremental-import history.
  • Fix word wrapping of colored diff output for a word containing two or more separately-highlighted spans, which was incorrectly split into two words at the second highlighted span.
  • Import: duplicate_keys that use library field names such as mb_albumid or mb_trackid now detect duplicates when a metadata-source match is applied, instead of treating the key as missing. 🐛 (#7067)
  • Improve the error message when the library database cannot be opened (for example due to permissions or an unwritable path), and fix the cannot not typo in the generic database open failure message. 🐛 (#1676)
  • Metadata source plugins such as MusicBrainz Plugin no longer print a full traceback at error level when a search fails because the service is unreachable. The error message is logged on its own, and the traceback is kept at debug level. 🐛 (#6960)
  • Path formats: an empty ${} inside a function call argument no longer truncates the argument list and leaks the rest of the template as literal text.
  • Stop replacing \ with / in util.path_as_posix on Unix, since \ is a valid character in filenames on Unix. 🐛 (#7062)
  • The initial beets setup no longer writes a database backup for every migration. Backups are now skipped when the table being migrated has no rows. 🐛 (#7170)

For plugin developers

  • ArtResizer.resize, ArtResizer.deinterlace and ArtResizer.reformat now expect pathlib.Path arguments. str and bytes paths keep working and are returned in the representation they were given in, but emit a DeprecationWarning and will be removed in 3.0.0.
  • beetsplug._utils.art.embed_item and beetsplug._utils.art.mediafile_image now expect pathlib.Path arguments, deprecating str and bytes in the same way.
  • Library.directory is now a pathlib.Path instead of bytes, and the Library constructor accepts any path-like value for it. Unlike the art utilities above this one has no compatibility shim, so plugins combining it with os.path helpers or comparing it against bytes paths need updating.
  • Import prompt choice callbacks can now read the candidate on screen from task.selected_match, including one picked by number from the candidate list. It is None while the candidate list itself is shown.
  • New Library.contains method replaces the lib.directory in util.ancestry(item.path) idiom for testing whether a path or a model lives inside the library.

Other changes

  • Duplicates Plugin: Clarify the option --full to explain how it will work with the action options: copy, move, delete, remove and tag. 🐛 (#5408)
  • Export Plugin: Clarify that the --include-keys option accepts field names rather than glob patterns. 🐛 (#5411)
  • Spotify Plugin: Correct the spotifysync long option to --force and document selecting tracks with a query.
  • Thumbnails Plugin: Drop the pyxdg dependency in favour of platformdirs, which beets already requires.
  • Unimported Plugin: ignore_extensions is now matched case-insensitively, so jpg also covers cover.JPG.
  • Beets now officially supports Python 3.15.
  • Beets now requires Python 3.11.5 or later. Every fixed release of soupsieve (3.0.2 and up) needs it, so with 3.11.0 to 3.11.4 still supported the lockfile kept a vulnerable soupsieve for those versions.

Don't miss a new beets release

NewReleases is sending notifications on new releases.