Release v2.0.0
With this release, beets now requires Python 3.7 or later (it removes support for Python 3.6).
Major new features
- The beets importer UI received a major overhaul. Several new configuration options are available for customizing layout and colors:
ui_options
. π (#3721) π (#5028)
New features
- edit: Prefer editor from
VISUAL
environment variable overEDITOR
. - config: Prefer editor from
VISUAL
environment variable overEDITOR
. - listenbrainz: Add initial support for importing history and playlists from
ListenBrainz
π (#1719) - mbsubmit: add new prompt choices helping further to submit unmatched tracks to MusicBrainz faster.
- spotify: We now fetch track's ISRC, EAN, and UPC identifiers from Spotify when using the
spotifysync
command. π (#4992) - discogs: supply a value for the
cover_art_url
attribute, for use byfetchart
. π (#429) - update: added
`-e
` flag for excluding fields from being updated. - deezer: Import rank and other attributes from Deezer during import and add a function to update the rank of existing items. π (#4841)
- resolve transl-tracklisting relations for pseudo releases and merge data with the actual release π (#654)
- Fetchart: Use the right field (
spotify_album_id
) to obtain the Spotify album id π (#4803) - Prevent reimporting album if it is permanently removed from Spotify π (#4800)
- Added option to use
cover_art_url
as an album art source in thefetchart
plugin. π (#4707) - fetchart: The plugin can now get album art from
spotify
. - Added option to specify a URL in the
embedart
plugin. π (#83) - list
singleton:true
queries have been made faster - list
singleton:1
andsingleton:0
can now alternatively be used in queries, same ascomp
- --from-logfile now parses log files using a UTF-8 encoding in
beets/beets/ui/commands.py
. π (#4693) - bareasc lookups have been made faster
- list lookups using the pattern operator
::
have been made faster - Added additional error handling for
spotify
plugin. π (#4686) - We now import the remixer field from Musicbrainz into the library. π (#4428)
- mbsubmit: Added a new
mbsubmit
command to print track information to be submitted to MusicBrainz after initial import. π (#4455) - Added
spotify_updated
field to track when the information was last updated. - We now import and tag the
album
information when importing singletons using Spotify source. π (#4398) - spotify: The plugin now provides an additional command
spotifysync
that allows getting track popularity and audio features information from Spotify. π (#4094) - spotify: The plugin now records Spotify-specific IDs in the
spotify_album_id
,spotify_artist_id
, andspotify_track_id
fields. π (#4348) - Create the parental directories for database if they do not exist. π (#3808) π (#4327)
musicbrainz-config
: a newmusicbrainz.enabled
option allows disabling the MusicBrainz metadata source during the autotagging process- kodiupdate: Now supports multiple kodi instances π (#4101)
- Add the item fields
bitrate_mode
,encoder_info
andencoder_settings
. - Add query prefixes
=
and~
. - A new configuration option,
duplicate_keys
, lets you change which fields the beets importer uses to identify duplicates. π (#1133) π (#4199) - Add
exact match <exact-match>
queries, using the prefixes=
and=~
. π (#4251) - discogs: Permit appending style to genre.
- discogs: Implement item_candidates for matching singletons.
- discogs: Check for compliant discogs_client module.
- convert: Add a new
auto_keep
option that automatically converts files but keeps the originals in the library. π (#1840) π (#4302) - Added a
-P
(or--disable-plugins
) flag to specify one/multiple plugin(s) to be disabled at startup. import-options
: Add support for re-running the importer on paths in log files that were created with the-l
(or--logfile
) argument. π (#4379) π (#4387)- Preserve mtimes from archives π (#4392)
- Add
%sunique{} <sunique>
template to disambiguate between singletons. π (#4438) - Add a new
import.ignored_alias_types
config option to allow for specific alias types to be skipped over when importing items/albums. - smartplaylist: A new
--pretend
option lets the user see what a new or changed smart playlist saved in the config is actually returning. π (#4573) - fromfilename: Add debug log messages that inform when the plugin replaced bad (missing) artist, title or tracknumber metadata. π (#4561) π (#4600)
musicbrainz-config
: MusicBrainz release pages often link to related metadata sources like Discogs, Bandcamp, Spotify, Deezer and Beatport. When enabled via themusicbrainz.external_ids
options, release ID's will be extracted from those URL's and imported to the library. π (#4220)- convert: Add support for generating m3u8 playlists together with converted media files. π (#4373)
- Fetch the
release_group_title
field from MusicBrainz. π4809
- discogs: Add support for applying album information on singleton imports. π
4716
- smartplaylist: During explicit runs of the
splupdate
command, the log message "Creating playlist ..."" is now displayed instead of hidden in the debug log, which states some form of progress through the UI. π (#4861) - subsonicupdate: Updates are now triggered whenever either the beets database is changed or a smart playlist is created/updated. π
4862
- importfeeds: Add a new output format allowing to save a playlist once per import session. π
4863
- Make ArtResizer work with
PIL
/pillow
10.0.0 removals. π (#4869) - A new configuration option,
duplicate_verbose_prompt
, allows changing how duplicates are presented during import. π4866
- embyupdate: Add handling for private users by adding
userid
config option. π (#4402) - substitute: Add the new plugin
substitute
as an alternative to therewrite
plugin. The main difference between them being thatrewrite
modifies files' metadata andsubstitute
does not. π (#2786) - Add support for
artists
andalbumartists
multi-valued tags. π (#505) - autobpm: Add the
autobpm
plugin which uses Librosa to calculate the BPM of the audio. π (#3856) - fetchart: Fix the error with CoverArtArchive where the
maxwidth
option would not be used to download a pre-sized thumbnail for release groups, as is already done with releases. - fetchart: Fix the error with CoverArtArchive where no cover would be found when the
maxwidth
option matches a pre-sized thumbnail size, but no thumbnail is provided by CAA. We now fallback to the raw image. - advancedrewrite: Add an advanced version of the
rewrite
plugin which allows to replace fields based on a given library query. - lyrics: Add LRCLIB as a new lyrics provider and a new
synced
option to prefer synced lyrics over plain lyrics. - import: Expose import.quiet_fallback as CLI option.
- import: Expose
import.incremental_skip_later
as CLI option. - smartplaylist: Expose config options as CLI options.
- smartplaylist: Add new option
smartplaylist.output
. - smartplaylist: Add new option
smartplaylist.uri_format
. - Sorted the default configuration file into categories. π (#4987)
- convert: Don't treat WAVE (
.wav
) files as lossy anymore when using thenever_convert_lossy_files
option. They will get transcoded like the other lossless formats. - Add support for
barcode
field. π (#3172) - smartplaylist: Add new config option
smartplaylist.fields
.
Bug fixes
- lastimport: Improve error handling in the
process_tracks
function and enable it to be used with other plugins. - spotify: Improve handling of ConnectionError.
- deezer: Improve Deezer plugin error handling and set requests timeout to 10 seconds. π (#4983)
- spotify: Add bad gateway (502) error handling.
- spotify: Add a limit of 3 retries, instead of retrying endlessly when the API is not available.
- Fix a crash when the Spotify API timeouts or does not return a
Retry-After
interval. π (#4942) - scrub: Fixed the import behavior where scrubbed database tags were restored to newly imported tracks with config settings
scrub.auto: yes
andimport.write: no
. π (#4326) - deezer: Fixed the error where Deezer plugin would crash if non-Deezer id is passed during import.
- fetchart: Fix fetching from Cover Art Archive when the
maxwidth
option is set to one of the supported Cover Art Archive widths. - discogs: Fix "Discogs plugin replacing Feat. or Ft. with a comma" by fixing an oversight that removed a functionality from the code base when the MetadataSourcePlugin abstract class was introduced in PR's #3335 and #3371. π (#4401)
- convert: Set default
max_bitrate
value toNone
to avoid transcoding when this parameter is not set. π (#4472) - replaygain: Avoid a crash when errors occur in the analysis backend. π (#4506)
- We now use Python's defaults for command-line argument encoding, which should reduce the chance for errors and "file not found" failures when invoking other command-line tools, especially on Windows. π (#4507)
- We now respect the Spotify API's rate limiting, which avoids crashing when the API reports code 429 (too many requests). π (#4370)
- Fix implicit paths OR queries (e.g.
beet list /path/ , /other-path/
) which have previously been returning the entire library. π (#1865) - The Discogs release ID is now populated correctly to the discogs_albumid field again (it was no longer working after Discogs changed their release URL format). π (#4225)
- The autotagger no longer considers all matches without a MusicBrainz ID as duplicates of each other. π (#4299)
- convert: Resize album art when embedding π (#2116)
- deezer: Fix auto tagger pagination issues (fetch beyond the first 25 tracks of a release).
- spotify: Fix auto tagger pagination issues (fetch beyond the first 50 tracks of a release).
- lyrics: Fix Genius search by using query params instead of body.
- unimported: The new
ignore_subdirectories
configuration option added in 1.6.0 now has a default value if it hasn't been set. - deezer: Tolerate missing fields when searching for singleton tracks. π (#4116)
- replaygain: The type of the internal
r128_track_gain
andr128_album_gain
fields was changed from integer to float to fix loss of precision due to truncation. π (#4169) - Fix a regression in the previous release that caused a
TypeError
when moving files across filesystems. π (#4168) - convert: Deleting the original files during conversion no longer logs output when the
quiet
flag is enabled. - web: Fix handling of "query" requests. Previously queries consisting of more than one token (separated by a slash) always returned an empty result.
- discogs: Skip Discogs query on insufficiently tagged files (artist and album tags missing) to prevent arbitrary candidate results. π (#4227)
- lyrics: Fixed issues with the Tekstowo.pl and Genius backends where some non-lyrics content got included in the lyrics
- limit: Better header formatting to improve index
- replaygain: Correctly handle the
overwrite
config option, which forces recomputing ReplayGain values on import even for tracks that already have the tags. - embedart: Fix a crash when using recent versions of ImageMagick and the
compare_threshold
option. π (#4272) - lyrics: Fixed issue with Genius header being included in lyrics, added test case of up-to-date Genius html
- importadded: Fix a bug with recently added reflink import option that causes a crash when ImportAdded plugin enabled. π (#4389)
- convert: Fix a bug with the
wma
format alias. - web: Fix get file from item.
- lastgenre: Fix a duplicated entry for trip hop in the default genre list. π (#4510)
- lyrics: Fixed issue with Tekstowo backend not actually checking if the found song matches. π (#4406)
- embedart: Add support for ImageMagick 7.1.1-12 π (#4836)
- fromfilename: Fix failed detection of <track> <title> filename patterns. π (#4561) π (#4600)
- Fix issue where deletion of flexible fields on an album doesn't cascade to items π (#4662)
- Fix issue where
beet write
continuously retags thealbumtypes
metadata field in files. Additionally broken data could have been added to the library when the tag was read from file back into the library usingbeet update
. It is required for all users to check if such broken data is present in the library. Following the instructions described here, a sanity check and potential fix is easily possible. π (#4528) - Fix updating "data_source" on re-imports and improve logging when flexible attributes are being re-imported. π (#4726)
- fetchart: Correctly select the cover art from fanart.tv with the highest number of likes
- lyrics: Fix a crash with the Google backend when processing some web pages. π (#4875)
- Modifying flexible attributes of albums now cascade to the individual album tracks, similar to how fixed album attributes have been cascading to tracks already. A new option
--noinherit/-I
tomodify <modify-cmd>
allows changing this behaviour. π (#4822) - Fix bug where an interrupted import process poisons the database, causing a null path that can't be removed. π (#4906)
- discogs: Fix bug where empty artist and title fields would return None instead of an empty list. π (#4973)
- Fix bug regarding displaying tracks that have been changed not being displayed unless the detail configuration is enabled.
- web: Fix range request support, allowing to play large audio/ opus files using e.g. a browser/firefox or gstreamer/mopidy directly.
- Fix bug where
zsh
completion script made assumptions about the specific variant ofawk
installed and required specific settings forsqlite3
and caching inzsh
. π (#3546) - Remove unused functions π (#5103)
- Fix bug where all media types are reported as the first media type when importing with MusicBrainz as the data source π (#4947)
- Fix bug where unimported plugin would not ignore children directories of ignored directories. π (#5130)
For plugin developers
- beets now explicitly prevents multiple plugins to define replacement functions for the same field. When previously defining
template_fields
for the same field in two plugins, the last loaded plugin would silently overwrite the function defined by the other plugin. Now, beets will raise an exception when this happens. π (#5002) - Allow reuse of some parts of beets' testing components. This may ease the work for externally developed plugins or related software (e.g. the beets plugin for Mopidy), if they need to create an in-memory instance of a beets music library for their tests.
For packagers
- As noted above, the minimum Python version is now 3.7.
- We fixed a version for the dependency on the Confuse library. π (#4167)
- The minimum required version of
mediafile
is now 0.9.0.
Other changes
- Add
sphinx
andsphinx_rtd_theme
as dependencies for a newdocs
extra π (#4643) - absubmit: Deprecate the
absubmit
plugin since AcousticBrainz has stopped accepting new submissions. π (#4627) - acousticbrainz: Deprecate the
acousticbrainz
plugin since the AcousticBrainz project has shut down. π (#4627) - limit: Limit query results to head or tail (
lslimit
command only) - fish: Add
--output
option. - lyrics: Remove Musixmatch from default enabled sources as they are currently blocking requests from the beets user agent. π (#4585)
/faq
:multidisc
: Elaborated the multi-disc FAQ π (#4806)/faq
:src
: Removed some long lines.- Refactor the test cases to avoid test smells.