Beets

Latest version: v2.2.0

Safety actively analyzes 688323 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

2.2.0

New features

- `/plugins/substitute`: Allow the replacement string to use capture groups from the match. It is thus possible to create more general rules, applying to many different artists at once.

Bug fixes

- Bring back test files and the manual to the source distribution tarball. :bug: (\5513)
- Fix bug where matcher doesn't consider medium number when importing. This makes it difficult to import hybrid SACDs and other releases with duplicate tracks. :bug: (\5148)
- Check if running python from the Microsoft Store and provide feedback to install from python.org. :bug: (\5467)

Other changes

- Changed `bitesize` label to `good first issue`. Our [contribute](https://github.com/beetbox/beets/contribute) page is now automatically populated with these issues. :bug: (\#4855)

2.1.0

New features

- Ability to query albums with track db fields and vice-versa, for example `beet list -a title:something` or `beet list artpath:cover`. Consequently album queries involving `path` field have been sped up, like `beet list -a path:/path/`.
- Beets now uses `platformdirs` to determine the default music directory. This location varies between systems -- for example, users can configure it on Unix systems via `user-dirs.dirs(5)`.
- New template function added: `%capitalize`. Converts the first letter of the text to uppercase and the rest to lowercase.
- Plugin **`autobpm`**: Add new configuration option `beat_track_kwargs` which enables adjusting keyword arguments supplied to librosa's `beat_track` function call.
- Plugin **`ftintitle`**: New `keep_in_artist` option for the plugin, which allows keeping the "feat." part in the artist metadata while still changing the title.

Bug fixes

- Album flexible fields are now correctly saved. For instance MusicBrainz external links such as `bandcamp_album_id` will be available on albums in addition to tracks. For albums already in your library, a re-import is required for the fields to be added. Such a re-import can be done with, in this case, `beet import -L data_source:=MusicBrainz`.
- Fix lyrics plugin only getting part of the lyrics from `Genius.com` :bug: (4815)
- Fix the `TypeError` when `set_fields` is provided non-string values. :bug: (4840)
- Fix the `auto` value for the `reflink` config option.
- Improve naming of temporary files by separating the random part with the file extension.
- Plugin **`autobpm`**: Fix the `TypeError` where tempo was being returned as a numpy array. Update `librosa` dependency constraint to prevent similar issues in the future. :bug: (5289)
- Plugin **`convert`**: Fixed the convert plugin `no_convert` option so that it no longer treats "and" and "or" queries the same. To maintain previous behaviour add commas between your query keywords. For help see `combiningqueries`.
- Plugin **`discogs`**: Fix the `TypeError` when there is no description.
- Plugin **`ftintitle`**: The detection of a "feat. X" part in a song title does not produce any false positives caused by words like "and" or "with" anymore. :bug: (5441)
- Plugin **`ftintitle`**: The detection of a "feat. X" part now also matches such parts if they are in parentheses or brackets. :bug: (5436)
- Plugin **`lyrics`**: Update `tekstowo` backend to fetch lyrics directly since recent updates to their website made it unsearchable. :bug: (5456)
- Use single quotes in all SQL queries :bug: (4709)

For packagers

- The `beet` script has been removed from the repository.
- The `typing_extensions` is required for Python 3.10 and below.
- The minimum supported Python version is now 3.8.

Other changes

- Added caching for dependency installation in all CI jobs which speeds them up a bit, especially the tests.
- GitHub workflows have been reorganised for clarity: style, linting, type and docs checks now live in separate jobs and are named accordingly.
- Installation instructions have been made consistent across plugins documentation. Users should simply install `beets` with an `extra` of the corresponding plugin name in order to install extra dependencies for that plugin.
- Plugin **`autobpm`**: Add plugin dependencies to `pyproject.toml` under the `autobpm` extra and update the plugin installation instructions in the docs. Since importing the bpm calculation functionality from `librosa` takes around 4 seconds, update the plugin to only do so when it actually needs to calculate the bpm. Previously this import was being done immediately, so every `beet` invocation was being delayed by a couple of seconds. :bug: (5185)
- The linting workflow has been made to run only when Python files or documentation is changed, and they only check the changed files. When dependencies are updated (`poetry.lock`), then the entire code base is checked.
- The long-deprecated `beets.util.confit` module has been removed. This may cause extremely outdated external plugins to fail to load.
- `contributing`: Since `poetry` now manages local virtual environments, `tox` has been replaced by a task runner `poethepoet`. This change affects beets developers and contributors. Please see updates in the `development-tools` section for more details. Type `poe` while in the project directory to see the available commands.
- `contributing`: The project now uses `poetry` for packaging and dependency management. This change affects project management and mostly affects beets developers. Please see updates in `getting-the-source` and `testing` for more information.

2.0.0

Changelog goes here! Please add your entry to the bottom of one of the lists below!

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`. :bug: (3721) :bug: (5028)

New features

- **edit**: Prefer editor from `VISUAL` environment variable over `EDITOR`.
- **config**: Prefer editor from `VISUAL` environment variable over `EDITOR`.
- **listenbrainz**: Add initial support for importing history and playlists from `ListenBrainz` :bug: (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. :bug: (4992)
- **discogs**: supply a value for the `cover_art_url` attribute, for use by `fetchart`. :bug: (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. :bug: (4841)
- resolve transl-tracklisting relations for pseudo releases and merge data with the actual release :bug: (654)
- Fetchart: Use the right field (`spotify_album_id`) to obtain the Spotify album id :bug: (4803)
- Prevent reimporting album if it is permanently removed from Spotify :bug: (4800)
- Added option to use `cover_art_url` as an album art source in the `fetchart` plugin. :bug: (4707)
- **fetchart**: The plugin can now get album art from `spotify`.
- Added option to specify a URL in the `embedart` plugin. :bug: (83)
- **list** `singleton:true` queries have been made faster
- **list** `singleton:1` and `singleton:0` can now alternatively be used in queries, same as `comp`
- \--from-logfile now parses log files using a UTF-8 encoding in `beets/beets/ui/commands.py`. :bug: (4693)
- **bareasc** lookups have been made faster
- **list** lookups using the pattern operator `::` have been made faster
- Added additional error handling for `spotify` plugin. :bug: (4686)
- We now import the remixer field from Musicbrainz into the library. :bug: (4428)
- **mbsubmit**: Added a new `mbsubmit` command to print track information to be submitted to MusicBrainz after initial import. :bug: (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. :bug: (4398)
- **spotify**: The plugin now provides an additional command `spotifysync` that allows getting track popularity and audio features information from Spotify. :bug: (4094)
- **spotify**: The plugin now records Spotify-specific IDs in the `spotify_album_id`, `spotify_artist_id`, and `spotify_track_id` fields. :bug: (4348)
- Create the parental directories for database if they do not exist. :bug: (3808) :bug: (4327)
- `musicbrainz-config`: a new `musicbrainz.enabled` option allows disabling the MusicBrainz metadata source during the autotagging process
- **kodiupdate**: Now supports multiple kodi instances :bug: (4101)
- Add the item fields `bitrate_mode`, `encoder_info` and `encoder_settings`.
- Add query prefixes `=` and `~`.
- A new configuration option, `duplicate_keys`, lets you change which fields the beets importer uses to identify duplicates. :bug: (1133) :bug: (4199)
- Add `exact match <exact-match>` queries, using the prefixes `=` and `=~`. :bug: (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. :bug: (1840) :bug: (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. :bug: (4379) :bug: (4387)
- Preserve mtimes from archives :bug: (4392)
- Add `%sunique{} <sunique>` template to disambiguate between singletons. :bug: (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. :bug: (4573)
- **fromfilename**: Add debug log messages that inform when the plugin replaced bad (missing) artist, title or tracknumber metadata. :bug: (4561) :bug: (4600)
- `musicbrainz-config`: MusicBrainz release pages often link to related metadata sources like Discogs, Bandcamp, Spotify, Deezer and Beatport. When enabled via the `musicbrainz.external_ids` options, release ID\'s will be extracted from those URL\'s and imported to the library. :bug: (4220)
- **convert**: Add support for generating m3u8 playlists together with converted media files. :bug: (4373)
- Fetch the `release_group_title` field from MusicBrainz. :bug: `4809`
- **discogs**: Add support for applying album information on singleton imports. :bug: `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. :bug: (4861)
- **subsonicupdate**: Updates are now triggered whenever either the beets database is changed or a smart playlist is created/updated. :bug: `4862`
- **importfeeds**: Add a new output format allowing to save a playlist once per import session. :bug: `4863`
- Make ArtResizer work with `PIL`/`pillow` 10.0.0 removals. :bug: (4869)
- A new configuration option, `duplicate_verbose_prompt`, allows changing how duplicates are presented during import. :bug: `4866`
- **embyupdate**: Add handling for private users by adding `userid` config option. :bug: (4402)
- **substitute**: Add the new plugin `substitute` as an alternative to the `rewrite` plugin. The main difference between them being that `rewrite` modifies files\' metadata and `substitute` does not. :bug: (2786)
- Add support for `artists` and `albumartists` multi-valued tags. :bug: (505)
- **autobpm**: Add the `autobpm` plugin which uses Librosa to calculate the BPM of the audio. :bug: (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. :bug: (4987)
- **convert**: Don\'t treat WAVE (`.wav`) files as lossy anymore when using the `never_convert_lossy_files` option. They will get transcoded like the other lossless formats.
- Add support for `barcode` field. :bug: (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. :bug: (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. :bug: (4942)
- **scrub**: Fixed the import behavior where scrubbed database tags were restored to newly imported tracks with config settings `scrub.auto: yes` and `import.write: no`. :bug: (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. :bug: (4401)
- **convert**: Set default `max_bitrate` value to `None` to avoid transcoding when this parameter is not set. :bug: (4472)
- **replaygain**: Avoid a crash when errors occur in the analysis backend. :bug: (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. :bug: (4507)
- We now respect the Spotify API\'s rate limiting, which avoids crashing when the API reports code 429 (too many requests). :bug: (4370)
- Fix implicit paths OR queries (e.g. `beet list /path/ , /other-path/`) which have previously been returning the entire library. :bug: (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). :bug: (4225)
- The autotagger no longer considers all matches without a MusicBrainz ID as duplicates of each other. :bug: (4299)
- **convert**: Resize album art when embedding :bug: (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. :bug: (4116)
- **replaygain**: The type of the internal `r128_track_gain` and `r128_album_gain` fields was changed from integer to float to fix loss of precision due to truncation. :bug: (4169)
- Fix a regression in the previous release that caused a `TypeError` when moving files across filesystems. :bug: (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. :bug: (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. :bug: (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. :bug: (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. :bug: (4510)
- **lyrics**: Fixed issue with Tekstowo backend not actually checking if the found song matches. :bug: (4406)
- **embedart**: Add support for ImageMagick 7.1.1-12 :bug: (4836)
- **fromfilename**: Fix failed detection of \<track\> \<title\> filename patterns. :bug: (4561) :bug: (4600)
- Fix issue where deletion of flexible fields on an album doesn\'t cascade to items :bug: (4662)
- Fix issue where `beet write` continuously retags the `albumtypes` 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 using `beet update`. It is required for all users to **check if such broken data is present in the library**. Following the instructions [described here](https://github.com/beetbox/beets/pull/4582#issuecomment-1445023493), a sanity check and potential fix is easily possible. :bug: (4528)
- Fix updating \"data_source\" on re-imports and improve logging when flexible attributes are being re-imported. :bug: (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. :bug: (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` to `modify <modify-cmd>` allows changing this behaviour. :bug: (4822)
- Fix bug where an interrupted import process poisons the database, causing a null path that can\'t be removed. :bug: (4906)
- **discogs**: Fix bug where empty artist and title fields would return None instead of an empty list. :bug: (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 of `awk` installed and required specific settings for `sqlite3` and caching in `zsh`. :bug: (3546)
- Remove unused functions :bug: (5103)
- Fix bug where all media types are reported as the first media type when importing with MusicBrainz as the data source :bug: (4947)
- Fix bug where unimported plugin would not ignore children directories of ignored directories. :bug: (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. :bug: (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. :bug: (4167)
- The minimum required version of `mediafile` is now 0.9.0.

Other changes

- Add `sphinx` and `sphinx_rtd_theme` as dependencies for a new `docs` extra :bug: (4643)
- **absubmit**: Deprecate the `absubmit` plugin since AcousticBrainz has stopped accepting new submissions. :bug: (4627)
- **acousticbrainz**: Deprecate the `acousticbrainz` plugin since the AcousticBrainz project has shut down. :bug: (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. :bug: (4585)
- `/faq`: `multidisc`: Elaborated the multi-disc FAQ :bug: (4806)
- `/faq`: `src`: Removed some long lines.
- Refactor the test cases to avoid test smells.

1.6.0

This release is our first experiment with time-based releases! We are aiming to publish a new release of beets every 3 months. We therefore have a healthy but not dizzyingly long list of new features and fixes.

With this release, beets now requires Python 3.6 or later (it removes support for Python 2.7, 3.4, and 3.5). There are also a few other dependency changes\-\--if you\'re a maintainer of a beets package for a package manager, thank you for your ongoing efforts, and please see the list of notes below.

Major new features:

- When fetching genres from MusicBrainz, we now include genres from the release group (in addition to the release). We also prioritize genres based on the number of votes. Thanks to \aereaux.
- Primary and secondary release types from MusicBrainz are now stored in a new `albumtypes` field. Thanks to `edgars-supe`{.interpreted-text role="user"}. 2200
- An accompanying new `albumtypes` includes some options for formatting this new `albumtypes` field. Thanks to `edgars-supe`{.interpreted-text role="user"}.

Other new things:

- `permissions`: The plugin now sets cover art permissions to match the audio file permissions.
- `unimported`: A new configuration option supports excluding specific subdirectories in library.
- `info`: Add support for an `--album` flag.
- `export`: Similarly add support for an `--album` flag.
- `beet move` now highlights path differences in color (when enabled).
- When moving files and a direct rename of a file is not possible (for example, when crossing filesystems), beets now copies to a temporary file in the target folder first and then moves to the destination instead of directly copying the target path. This gets us closer to always updating files atomically. Thanks to \catap. 4060
- `fetchart`: Add a new option to store cover art as non-progressive image. This is useful for DAPs that do not support progressive images. Set `deinterlace: yes` in your configuration to enable this conversion.
- `fetchart`: Add a new option to change the file format of cover art images. This may also be useful for DAPs that only support some image formats.
- Support flexible attributes in `%aunique`. 2678 3553
- Make `%aunique` faster, especially when using inline fields. 4145

Bug fixes:

- `lyrics`: Fix a crash when Beautiful Soup is not installed. 4027
- `discogs`: Support a new Discogs URL format for IDs. 4080
- `discogs`: Remove built-in rate-limiting because the Discogs Python library we use now has its own rate-limiting. :bug: `4108`
- `export`: Fix some duplicated output.
- `aura`: Fix a potential security hole when serving image files. 4160

For plugin developers:

- :py`beets.library.Item.destination`{.interpreted-text role="meth"} now accepts a `replacements` argument to be used in favor of the default.
- The `pluginload` event is now sent after plugin types and queries are available, not before.
- A new plugin event, `album_removed`, is called when an album is removed from the library (even when its file is not deleted from disk).

Here are some notes for packagers:

- As noted above, the minimum Python version is now 3.6.
- We fixed a flaky test, named `test_album_art` in the `test_zero.py` file, that some distributions had disabled. Disabling this test should no longer be necessary. 4037 4038
- This version of beets no longer depends on the [six]() library. 4030
- The `gmusic` plugin was removed since Google Play Music has been shut down. Thus, the optional dependency on `gmusicapi` does not exist anymore. 4089

1.5.0

Not secure
This long overdue release of beets includes far too many exciting and useful features than could ever be satisfactorily enumerated. As a technical detail, it also introduces two new external libraries: [MediaFile](https://github.com/beetbox/mediafile) and [Confuse](https://github.com/beetbox/confuse) used to be part of beets but are now reusable dependencies---packagers, please take note. Finally, this is the last version of beets where we intend to support Python 2.x and 3.5; future releases will soon require Python 3.6.

One non-technical change is that we moved our official `beets` home on IRC from freenode to [Libera.Chat](https://libera.chat/).

Major new features:

- Fields in queries now fall back to an item\'s album and check its fields too. Notably, this allows querying items by an album\'s attribute: in other words, `beet list foo:bar` will not only find tracks with the `foo` attribute; it will also find tracks *on albums* that have the `foo` attribute. This may be particularly useful in the path-format-config\`, which matches individual items to decide which path to use. Thanks to \FichteFoll. 2797 2988
- A new `reflink` config option instructs the importer to create fast, copy-on-write file clones on filesystems that support them. Thanks to \rubdos.
- A new `unimported` lets you find untracked files in your library directory.
- The `aura` has arrived! Try out the future of remote music library access today.
- We now fetch information about [works](https://musicbrainz.org/doc/Work) from MusicBrainz. MusicBrainz matches provide the fields `work` (the title), `mb_workid` (the MBID), and `work_disambig` (the disambiguation string). Thanks to \dosoe. #2580 3272
- A new `parentwork` gets information about the original work, which is useful for classical music. Thanks to \dosoe. 2580 3279
- `bpd`: BPD now supports most of the features of version 0.16 of the MPD protocol. This is enough to get it talking to more complicated clients like ncmpcpp, but there are still some incompatibilities, largely due to MPD commands we don\'t support yet. (Let us know if you find an MPD client that doesn\'t get along with BPD!) 3214 800
- A new `deezer` can autotag tracks and albums using the [Deezer](https://www.deezer.com) database. Thanks to \rhlahuja. #3355
- A new `bareasc` provides a new query type: \"bare ASCII\" queries that ignore accented characters, treating them as though they were plain ASCII characters. Use the `` prefix with `list` or other commands. 3882
- `fetchart`: The plugin can now get album art from [last.fm](https://last.fm). #3530
- `web`: The API now supports the HTTP `DELETE` and `PATCH` methods for modifying items. They are disabled by default; set `readonly: no` in your configuration file to enable modification via the API. 3870

Other new things:

- `beet remove` now also allows interactive selection of items from the query, similar to `beet modify`.
- Enable HTTPS for MusicBrainz by default and add configuration option `https` for custom servers. See `musicbrainz-config` for more details.
- `mpdstats`: Add a new `strip_path` option to help build the right local path from MPD information.
- `convert`: Conversion can now parallelize conversion jobs on Python 3.
- `lastgenre`: Add a new `title_case` config option to make title-case formatting optional.
- There\'s a new message when running `beet config` when there\'s no available configuration file. 3779
- When importing a duplicate album, the prompt now says \"keep all\" instead of \"keep both\" to reflect that there may be more than two albums involved. 3569
- `chroma`: The plugin now updates file metadata after generating fingerprints through the `submit` command.
- `lastgenre`: Added more heavy metal genres to the built-in genre filter lists.
- A new `subsonicplaylist` can import playlists from a Subsonic server.
- `subsonicupdate`: The plugin now automatically chooses between token- and password-based authentication based on the server version.
- A new `extra_tags` configuration option lets you use more metadata in MusicBrainz queries to further narrow the search.
- A new `fish` adds [Fish shell](https://fishshell.com/) tab autocompletion to beets.
- `plugins/fetchart` and `plugins/embedart`: Added a new `quality` option that controls the quality of the image output when the image is resized.
- `plugins/keyfinder`: Added support for [keyfinder-cli](https://github.com/EvanPurkhiser/keyfinder-cli). Thanks to \BrainDamage.
- `plugins/fetchart`: Added a new `high_resolution` config option to allow downloading of higher resolution iTunes artwork (at the expense of file size). 3391
- `plugins/discogs`: The plugin applies two new fields: `discogs_labelid` and `discogs_artistid`. 3413
- `export`: Added a new `-f` (`--format`) flag, which can export your data as JSON, JSON lines, CSV, or XML. Thanks to \austinmm. 3402
- `convert`: Added a new `-l` (`--link`) flag and `link` option as well as the `-H` (`--hardlink`) flag and `hardlink` option, which symlink or hardlink files that do not need to be converted (instead of copying them). 2324
- `replaygain`: The plugin now supports a `per_disc` option that enables calculation of album ReplayGain on disc level instead of album level. Thanks to \samuelnilsson. 293
- `replaygain`: The new `ffmpeg` ReplayGain backend supports `R128_` tags. 3056
- `plugins/replaygain`: A new `r128_targetlevel` configuration option defines the reference volume for files using `R128_` tags. `targetlevel` only configures the reference volume for `REPLAYGAIN_` files. 3065
- `discogs`: The plugin now collects the \"style\" field. Thanks to \thedevilisinthedetails. 2579 3251
- `absubmit`: By default, the plugin now avoids re-analyzing files that already have AcousticBrainz data. There are new `force` and `pretend` options to help control this new behavior. Thanks to \SusannaMaria. 3318
- `discogs`: The plugin now also gets genre information and a new `discogs_albumid` field from the Discogs API. Thanks to \thedevilisinthedetails. 465 3322
- `acousticbrainz`: The plugin now fetches two more additional fields: `moods_mirex` and `timbre`. Thanks to \malcops. 2860
- `playlist` and `smartplaylist`: A new `forward_slash` config option facilitates compatibility with MPD on Windows. Thanks to \MartyLake. 3331 3334
- The `data_source` field, which indicates which metadata source was used during an autotagging import, is now also applied as an album-level flexible attribute. 3350 1693
- `beatport`: The plugin now gets the musical key, BPM, and genre for each track. 2080
- A new `bpsync` can synchronize metadata changes from the Beatport database (like the existing `mbsync` for MusicBrainz).
- `hook`: The plugin now treats non-zero exit codes as errors. 3409
- `subsonicupdate`: A new `url` configuration replaces the older (and now deprecated) separate `host`, `port`, and `contextpath` config options. As a consequence, the plugin can now talk to Subsonic over HTTPS. Thanks to \jef. 3449
- `discogs`: The new `index_tracks` option enables incorporation of work names and intra-work divisions into imported track titles. Thanks to `cole-miller`. 3459
- `web`: The query API now interprets backslashes as path separators to support path queries. Thanks to \nmeum. 3567
- `beet import` now handles tar archives with bzip2 or gzip compression. 3606
- `beet import` *also* now handles 7z archives, via the [py7zr](https://pypi.org/project/py7zr/) library. Thanks to \arogl. #3906
- `plexupdate`: Added an option to use a secure connection to Plex server, and to ignore certificate validation errors if necessary. 2871
- `convert`: A new `delete_originals` configuration option can delete the source files after conversion during import. Thanks to `logan-arens`. 2947
- There is a new `--plugins` (or `-p`) CLI flag to specify a list of plugins to load.
- A new `genres` option fetches genre information from MusicBrainz. This functionality depends on functionality that is currently unreleased in the [python-musicbrainzngs]() library: see PR `266 _. Thanks to :user:`aereaux\`.
- `replaygain`: Analysis now happens in parallel using the `command` and `ffmpeg` backends. 3478
- `plugins/replaygain`: The bs1770gain backend is removed. Thanks to \SamuelCook.
- Added `trackdisambig` which stores the recording disambiguation from MusicBrainz for each track. 1904
- `plugins/fetchart`: The new `max_filesize` configuration sets a maximum target image file size.
- `badfiles`: Checkers can now run during import with the `check_on_import` config option.
- `export`: The plugin is now much faster when using the `--include-keys` option is used. Thanks to \ssssam.
- The importer\'s set_fields\` option now saves all updated fields to on-disk metadata. 3925 3927
- We now fetch ISRC identifiers from MusicBrainz. Thanks to \aereaux.
- `metasync`: The plugin now also fetches the \"Date Added\" field from iTunes databases and stores it in the `itunes_dateadded` field. Thanks to \sandersantema.
- `lyrics`: Added a new Tekstowo.pl lyrics provider. Thanks to various people for the implementation and for reporting issues with the initial version. 3344 3904 3905 3994
- `beet update` will now confirm that the user still wants to update if their library folder cannot be found, preventing the user from accidentally wiping out their beets database. Thanks to user: `logan-arens`. 1934

Fixes:

- Adapt to breaking changes in Python\'s `ast` module in Python 3.8.
- `beatport`: Fix the assignment of the `genre` field, and rename `musical_key` to `initial_key`. 3387
- `lyrics`: Fixed the Musixmatch backend for lyrics pages when lyrics are divided into multiple elements on the webpage, and when the lyrics are missing.
- `web`: Allow use of the backslash character in regex queries. 3867
- `web`: Fixed a small bug that caused the album art path to be redacted even when `include_paths` option is set. 3866
- `discogs`: Fixed a bug with the `index_tracks` option that sometimes caused the index to be discarded. Also, remove the extra semicolon that was added when there is no index track.
- `subsonicupdate`: The API client was using the `POST` method rather the `GET` method. Also includes better exception handling, response parsing, and tests.
- `the`: Fixed incorrect regex for \"the\" that matched any 3-letter combination of the letters t, h, e. 3701
- `fetchart`: Fixed a bug that caused the plugin to not take environment variables, such as proxy servers, into account when making requests. 3450
- `fetchart`: Temporary files for fetched album art that fail validation are now removed.
- `inline`: In function-style field definitions that refer to flexible attributes, values could stick around from one function invocation to the next. This meant that, when displaying a list of objects, later objects could seem to reuse values from earlier objects when they were missing a value for a given field. These values are now properly undefined. 2406
- `bpd`: Seeking by fractions of a second now works as intended, fixing crashes in MPD clients like mpDris2 on seek. The `playlistid` command now works properly in its zero-argument form. 3214
- `replaygain`: Fix a Python 3 incompatibility in the Python Audio Tools backend. 3305
- `importadded`: Fixed a crash that occurred when the `after_write` signal was emitted. 3301
- `plugins/replaygain`: Fix the storage format for R128 gain tags. 3311 3314
- `discogs`: Fixed a crash that occurred when the master URI isn\'t set in the API response. 2965 3239
- `spotify`: Fix handling of year-only release dates returned by the Spotify albums API. Thanks to \rhlahuja. 3343
- Fixed a bug that caused the UI to display incorrect track numbers for tracks with index 0 when the `per_disc_numbering` option was set. 3346
- `none_rec_action` does not import automatically when `timid` is enabled. Thanks to \RollingStar. 3242
- Fix a bug that caused a crash when tagging items with the beatport plugin. 3374
- `beet import` now logs which files are ignored when in debug mode. 3764
- `bpd`: Fix the transition to next track when in consume mode. Thanks to \aereaux. 3437
- `lyrics`: Fix a corner-case with Genius lowercase artist names 3446
- `parentwork`: Don\'t save tracks when nothing has changed. 3492
- Added a warning when configuration files defined in the `include` directive of the configuration file fail to be imported. 3498
- Added normalization to integer values in the database, which should avoid problems where fields like `bpm` would sometimes store non-integer values. 762 3507 3508
- Fix a crash when querying for null values. 3516 3517
- `lyrics`: Tolerate a missing lyrics div in the Genius scraper. Thanks to \thejli21. 3535 3554
- `lyrics`: Use the artist sort name to search for lyrics, which can help find matches when the artist name has special characters. Thanks to \hashhar. 3340 3558
- `replaygain`: Trying to calculate volume gain for an album consisting of some formats using `ReplayGain` and some using `R128` will no longer crash; instead it is skipped and and a message is logged. The log message has also been rewritten for to improve clarity. Thanks to \autrimpo. 3533
- `lyrics`: Adapt the Genius backend to changes in markup to reduce the scraping failure rate. 3535 3594
- `lyrics`: Fix a crash when writing ReST files for a query without results or fetched lyrics. 2805
- `fetchart`: Attempt to fetch pre-resized thumbnails from Cover Art Archive if the `maxwidth` option matches one of the sizes supported by the Cover Art Archive API. Thanks to \trolley. 3637
- `ipfs`: Fix Python 3 compatibility. Thanks to \musoke. 2554
- Fix a bug that caused metadata starting with something resembling a drive letter to be incorrectly split into an extra directory after the colon. 3685
- `mpdstats`: Don\'t record a skip when stopping MPD, as MPD keeps the current track in the queue. Thanks to \aereaux. 3722
- String-typed fields are now normalized to string values, avoiding an occasional crash when using both the `fetchart` and the `discogs` together. 3773 3774
- Fix a bug causing PIL to generate poor quality JPEGs when resizing artwork. 3743
- `plugins/keyfinder`: Catch output from `keyfinder-cli` that is missing key. 2242
- `plugins/replaygain`: Disable parallel analysis on import by default. 3819
- `mpdstats`: Fix Python 2/3 compatibility 3798
- `discogs`: Replace the deprecated official `discogs-client` library with the community supported [python3-discogs-client](https://github.com/joalla/discogs_client) library. #3608
- `chroma`: Fixed submitting AcoustID information for tracks that already have a fingerprint. 3834
- Allow equals within the value part of the `--set` option to the `beet import` command. 2984
- Duplicates can now generate checksums. Thanks \wisp3rwind for the pointer to how to solve. Thanks to \arogl. 2873
- Templates that use `%ifdef` now produce the expected behavior when used in conjunction with non-string fields from the `types`. 3852
- `lyrics`: Fix crashes when a website could not be retrieved, affecting at least the Genius source. 3970
- `duplicates`: Fix a crash when running the `dup` command with a query that returns no results. 3943
- `beatport`: Fix the default assignment of the musical key. 3377
- `lyrics`: Improved searching on the Genius backend when the artist contains special characters. 3634
- `parentwork`: Also get the composition date of the parent work, instead of just the child work. Thanks to \aereaux. 3650
- `lyrics`: Fix a bug in the heuristic for detecting valid lyrics in the Google source. 2969
- `thumbnails`: Fix a crash due to an incorrect string type on Python 3. 3360
- `fetchart`: The Cover Art Archive source now iterates over all front images instead of blindly selecting the first one.
- `lyrics`: Removed the LyricWiki source (the site shut down on 21/09/2020).
- `subsonicupdate`: The plugin is now functional again. A new `auth` configuration option is required in the configuration to specify the flavor of authentication to use. 4002

For plugin developers:

- [MediaFile](https://github.com/beetbox/mediafile) has been split into a standalone project. Where you used to do `from beets import mediafile`, now just do `import mediafile`. Beets re-exports MediaFile at the old location for backwards-compatibility, but a deprecation warning is raised if you do this since we might drop this wrapper in a future release.
- Similarly, we\'ve replaced beets\' configuration library (previously called Confit) with a standalone version called [Confuse](https://github.com/beetbox/confuse). Where you used to do `from beets.util import confit`, now just do `import confuse`. The code is almost identical apart from the name change. Again, we\'ll re-export at the old location (with a deprecation warning) for backwards compatibility, but we might stop doing this in a future release.
- `beets.util.command_output` now returns a named tuple containing both the standard output and the standard error data instead of just stdout alone. Client code will need to access the `stdout` attribute on the return value. Thanks to \zsinskri. 3329
- There were sporadic failures in `test.test_player`. Hopefully these are fixed. If they resurface, please reopen the relevant issue. 3309 3330
- The `beets.plugins.MetadataSourcePlugin` base class has been added to simplify development of plugins which query album, track, and search APIs to provide metadata matches for the importer. Refer to the `spotify` and the `deezer` for examples of using this template class. 3355
- Accessing fields on an `Item` now falls back to the album\'s attributes. So, for example, `item.foo` will first look for a field `foo` on `item` and, if it doesn\'t exist, next tries looking for a field named `foo` on the album that contains `item`. If you specifically want to access an item\'s attributes, use `Item.get(key, with_album=False)`. 2988
- `Item.keys` also has a `with_album` argument now, defaulting to `True`.
- A `revision` attribute has been added to `Database`. It is increased on every transaction that mutates it. 2988
- The classes `AlbumInfo` and `TrackInfo` now convey arbitrary attributes instead of a fixed, built-in set of field names (which was important to address 1547). Thanks to \dosoe.
- Two new events, `mb_album_extract` and `mb_track_extract`, let plugins add new fields based on MusicBrainz data. Thanks to \dosoe.

For packagers:

- Beets\' library for manipulating media file metadata has now been split to a standalone project called [MediaFile](https://github.com/beetbox/mediafile), released as `mediafile`. Beets now depends on this new package. Beets now depends on Mutagen transitively through MediaFile rather than directly, except in the case of one of beets\' plugins (in particular, the `scrub`).
- Beets\' library for configuration has been split into a standalone project called [Confuse](https://github.com/beetbox/confuse), released as `confuse`. Beets now depends on this package. Confuse has existed separately for some time and is used by unrelated projects, but until now we\'ve been bundling a copy within beets.
- We attempted to fix an unreliable test, so a patch to [skip or repair](https://build.opensuse.org/package/view_file/openSUSE:Factory/beets/fix_test_command_line_option_relative_to_working_dir.diff?expand=1) the test may no longer be necessary.
- This version drops support for Python 3.4.
- We have removed an optional dependency on bs1770gain.

1.4.9

Not secure
This small update is part of our attempt to release new versions more often! There are a few important fixes, and we're clearing the deck for a change to beets' dependencies in the next version.

The new feature is:

- You can use the [NO_COLOR](https://no-color.org) environment variable to disable terminal colors. #3273

There are some fixes in this release:

- Fix a regression in the last release that made the image resizer fail to detect older versions of ImageMagick. 3269
- `gmusic`: The `oauth_file` config option now supports more flexible path values, including `~` for the home directory. 3270
- `gmusic`: Fix a crash when using version 12.0.0 or later of the `gmusicapi` module. 3270
- Fix an incompatibility with Python 3.8's AST changes. 3278

Here's a note for packagers:

- `pathlib` is now an optional test dependency on Python 3.4+, removing the need for [a Debian patch](https://sources.debian.org/src/beets/1.4.7-2/debian/patches/pathlib-is-stdlib/). #3275

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.