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-bpmoption to overridebeat_track_kwargs.start_bpmfrom 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 Candidatesnow 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_keysetting (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
albumartistsfield before falling back to the artist source. 🐛 (#6238) - Lyrics Plugin: Add support for a custom
lrclibbackend URL. You can now use thelrclib.urloption in the configuration file. 🐛 (#7118) - MPDUpdate Plugin: Add support for connecting to mpd via abstract socket.
- Smart Playlist Plugin: The
relative_tooption and--relative-toflag now acceptlibraryto 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
autooption 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 aretitleand the default disambiguators aretrack disc artist. - Add
-l / --limit LIMITto other query-based commands. Commands that already use-lfor another purpose accept--limit LIMITonly. - 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/--configcommand-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
fpcalcbinary directly (viaforce_fpcalc=True) instead of routing through audioread's GStreamer backend, which leaked fds on fingerprinting errors. 🐛 (#5171) - Deezer Plugin:
deezerupdatenow stores each track's Deezer rank instead of1. 🐛 (#7106) - Discogs Plugin: Normalize
Digital MediaandWEBto Discogs'Fileformat when usingmediainextra_tagssearch 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-999high-resolution artwork from the iTunes Store instead of deprecated100000x100000-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-logfileoption) when paths contain; \characters. 🐛 (#4941) - import command: Detect the format of extension-less files on Windows, where the
ffprobeoutput was left unparsed because of its line endings. - import command: Handle the
Merge allduplicate action whenimport.autotagisno, merging new tracks into the existing album instead of creating a duplicate album entry. 🐛 (#7178) - ImportAdded Plugin: The
preserve_write_mtimesoption no longer writes to the item's source file whenbeet convertwrites the converted file, which previously crashed with aPermissionErrorwhen the source file was read-only. 🐛 (#6954) - Info Plugin: Fix a
TypeErrorwhen printing list-valued tag fields with non-string elements, such assynced_lyrics. 🐛 (#7183) - LastGenre Plugin: An empty or null
whitelistorcanonicalsetting now raises a clear error instead of silently falling back to the default file. Useyes,noor 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_backendandlyrics_urlfor instrumental matches on items without lyrics, which were previously discarded. - Lyrics Plugin: The
googlesource 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_totalto the number of tracks remaining after configured data and video filters. 🐛 (#6836) - Missing Plugin: Fix the documentation of the
--release-typescommand-line option and therelease_typesconfiguration 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'smediais now their common format (Hybrid SACD) instead of the genericMedia. Releases mixing different formats still getMedia. - 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
/musicpreviously 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_topoints 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 replaygainon a large library run for hours without starting any analysis. 🐛 (#5449) - Titlecase Plugin: Fix
beet completioncrashing withOptionConflictErrorwhen the plugin is enabled. - Titlecase Plugin: Fix characters being dropped or duplicated when
separatorsis combined with a Replace Plugin rule that changes the length of the text. 🐛 (#6300) - Unimported Plugin:
ignore_subdirectoriesnow matches whole path components instead of a string prefix, sopodno longer also skipspodcasts. 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
genreandgenres,artistandartists) when usingkeep_fields. 🐛 (#7069) - Add
alternatives.item_updatedto 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
magickhad 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.picklecould 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_keysthat use library field names such asmb_albumidormb_trackidnow 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 nottypo 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/inutil.path_as_posixon 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.deinterlaceandArtResizer.reformatnow expectpathlib.Patharguments.strandbytespaths keep working and are returned in the representation they were given in, but emit aDeprecationWarningand will be removed in 3.0.0.beetsplug._utils.art.embed_itemandbeetsplug._utils.art.mediafile_imagenow expectpathlib.Patharguments, deprecatingstrandbytesin the same way.Library.directoryis now apathlib.Pathinstead ofbytes, and theLibraryconstructor accepts any path-like value for it. Unlike the art utilities above this one has no compatibility shim, so plugins combining it withos.pathhelpers or comparing it againstbytespaths 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 isNonewhile the candidate list itself is shown. - New
Library.containsmethod replaces thelib.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
--fullto explain how it will work with the action options: copy, move, delete, remove and tag. 🐛 (#5408) - Export Plugin: Clarify that the
--include-keysoption accepts field names rather than glob patterns. 🐛 (#5411) - Spotify Plugin: Correct the
spotifysynclong option to--forceand document selecting tracks with a query. - Thumbnails Plugin: Drop the
pyxdgdependency in favour ofplatformdirs, which beets already requires. - Unimported Plugin:
ignore_extensionsis now matched case-insensitively, sojpgalso coverscover.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 vulnerablesoupsievefor those versions.