Skip to content

Releases

nightly-61ae14e0-ls29

nightly-61ae14e0-ls29 Pre-release
Pre-release

Choose a tag to compare

CI

Test report · Build status

LinuxServer changes

Full Changelog: nightly-dd681dd7-ls28...nightly-61ae14e0-ls29

Upstream changes

Source: beetbox/beets@61ae14e

Refactor/importer update readability (#7212)

Description

In beets/importer/tasks.py, the "delete the file if it's in the
library, then
prune empty directories" block was repeated six times across the album
and
singleton duplicate-removal methods (remove_duplicates and
_remove_upgrade_duplicates). This replaces those copies with a single
_delete_library_file() helper.

No behaviour change.

To Do

  • Documentation (no user-facing change)
  • Changelog (internal refactor)
  • Tests (covered by existing tests)

nightly-dd681dd7-ls28

nightly-dd681dd7-ls28 Pre-release
Pre-release

Choose a tag to compare

CI

Test report · Build status

LinuxServer changes

Full Changelog: nightly-2617a336-ls27...nightly-dd681dd7-ls28

Upstream changes

Source: beetbox/beets@dd681dd

autobpm: Librosa start_bpm CLI override (#7137)

Description

The (probably) often used start_bpm setting is now available as
--start-bpm or even simpler -b to help the autobpm plugin get BPM
calculation as expected by the user. A good example is to convince
autobpm and librosa to prevent "half time" guesses we often see with
breakbeat tracks around 160-180 BPM, getting detected as 80-90 BPM
instead.

To Do

  • Documentation.
  • Changelog.
  • Tests.

nightly-3b34ac8c-ls26

nightly-3b34ac8c-ls26 Pre-release
Pre-release

Choose a tag to compare

CI

Test report · Build status

LinuxServer changes

Full Changelog: nightly-458390ea-ls25...nightly-3b34ac8c-ls26

Upstream changes

Source: beetbox/beets@3b34ac8

Fix empty db migration backup (#7171)

Description

Fixes #7170.

When beets creates a new library, it runs every migration on the fresh
database,
and each one made a backup first. A brand-new, empty library ended up
with 11
.bak files and 11 "Created database backup" lines, even for beet version.

This PR makes _before_migration_backup in beets/dbcore/db.py skip
the
backup when the table being migrated has no rows (SELECT 1 FROM <table> LIMIT 1).
An empty table has no data for a migration to change, so there's nothing
to
protect. The migrations still run and are still recorded, so they won't
be
retried on the next start.

Tables that contain data are backed up exactly as before.

Before: fresh BEETSDIR + beet version → 11 .bak files.
After: fresh BEETSDIR + beet version → 0 .bak files, 11
migrations recorded.

To Do

  • Documentation. (bug fix, no user-facing option changes)
  • Changelog.
  • Tests. Added test_no_backup_for_empty_table to
    TestMigrationBackup. It
    fails without the fix and passes with it; the existing
    test_backup_config
    (which expects one backup when the table has data) still passes.

poe lint, poe check-format and poe lint-docs pass. The full test
suite
passes locally except test_importfeeds.py::test_link_creates_symlink,
which
also fails on unmodified master on Windows (symlinks need admin or
Developer
Mode) and is unrelated.


AI disclosure: An AI assistant (Claude) helped me find and reproduce
this bug,
explained the code, suggested the approach, and drafted this
description. I
wrote the code change and the test myself and can answer questions about
them.

nightly-2617a336-ls27

nightly-2617a336-ls27 Pre-release
Pre-release

Choose a tag to compare

CI

Test report · Build status

LinuxServer changes

Full Changelog: nightly-3b34ac8c-ls26...nightly-2617a336-ls27

Upstream changes

Source: beetbox/beets@2617a33

More Art Plugin (#7216)

Added moreart plugin to the index/rst. It has a readme and is working
on my computer!

nightly-e333038d-ls23

nightly-e333038d-ls23 Pre-release
Pre-release

Choose a tag to compare

CI

Test report · Build status

LinuxServer changes

Full Changelog: nightly-718dc3ae-ls22...nightly-e333038d-ls23

Upstream changes

Source: beetbox/beets@e333038

lyrics: warn clearly when Google refuses the search request (#7148)

Description

Fixes #6761.

Google has closed the Custom Search JSON API to new customers, and
existing customers must move to another solution by January 1, 2027 (as
written in the issue). When Google refuses the request, the google
source of the lyrics plugin only logged a generic Request error: 403 Client Error ..., which is hard to understand.

I kept this change small on purpose. I did not choose a replacement
service, because I think this is a decision for the maintainers.

What I changed

  • In beetsplug/lyrics.py, the Google backend now catches an HTTP 400
    or 403 error and logs a clear message: check google_API_key and
    google_engine_ID, the API is closed to new customers and will be
    discontinued on January 1, 2027, and the other sources can be used
    instead. The search then returns no result, so the plugin goes on with
    the next source. Other errors are handled as before.
  • In docs/plugins/lyrics.rst, I added a warning in the "Activate
    Google Custom Search" section.
  • I added an entry to the changelog.

Tests

I added test_search_refused_by_google in
test/plugins/test_lyrics.py. It mocks the Google response with status
400 and 403 and checks that the search returns nothing and the clear
message is logged. The test fails without the change and passes with it.

I ran poe format, poe lint and poe test test/plugins/test_lyrics.py on my computer (131 passed, 18 skipped).

Notes

  • I could not test with a real Google account. I assumed that Google
    answers with 400 (invalid key) or 403 (no access to the API). If Google
    uses another status for a closed API, the status codes in the code
    should be changed.

AI usage

I used Claude to help me with this contribution. I ran the tests and the
linter myself .

nightly-458390ea-ls25

nightly-458390ea-ls25 Pre-release
Pre-release

Choose a tag to compare

CI

Test report · Build status

LinuxServer changes

Full Changelog: nightly-458390ea-ls24...nightly-458390ea-ls25

Upstream changes

Source: beetbox/beets@458390e

zero: preserve paired and aliased fields when using keep_fields (#7069) (#7077)

Problem

When using the zero plugin in whitelist mode (keep_fields), paired
and aliased fields in MediaFile (such as genre and genres,
artist and artists, etc.) were not treated as aliases. If a user
specified keep_fields: [genres], the singular genre field was not in
the keep set and was queued to be nulled. Writing genre = None to the
underlying MediaFile wiped out the genre metadata on disk.
Symmetrically, specifying genre in keep_fields resulted in genres
being zeroed, as reported in #7069.

Solution

  • Define FIELD_ALIASES in beetsplug/zero.py containing groups of
    paired and aliased fields (images/art, genre/genres,
    artist/artists, albumartist/albumartists, etc.).
  • When constructing the whitelist keep set, expand it to include all
    members of any alias group for which at least one member is listed in
    keep_fields.
  • Added regression tests in test/plugins/test_zero.py verifying that
    specifying art, genre, genres, or artist in keep_fields
    preserves the metadata on disk.
  • Added changelog entry in docs/changelog.rst.

Fixes #7069.

nightly-458390ea-ls24

nightly-458390ea-ls24 Pre-release
Pre-release

Choose a tag to compare

CI

Test report · Build status

LinuxServer changes

Full Changelog: nightly-e333038d-ls23...nightly-458390ea-ls24

Upstream changes

Source: beetbox/beets@458390e

zero: preserve paired and aliased fields when using keep_fields (#7069) (#7077)

Problem

When using the zero plugin in whitelist mode (keep_fields), paired
and aliased fields in MediaFile (such as genre and genres,
artist and artists, etc.) were not treated as aliases. If a user
specified keep_fields: [genres], the singular genre field was not in
the keep set and was queued to be nulled. Writing genre = None to the
underlying MediaFile wiped out the genre metadata on disk.
Symmetrically, specifying genre in keep_fields resulted in genres
being zeroed, as reported in #7069.

Solution

  • Define FIELD_ALIASES in beetsplug/zero.py containing groups of
    paired and aliased fields (images/art, genre/genres,
    artist/artists, albumartist/albumartists, etc.).
  • When constructing the whitelist keep set, expand it to include all
    members of any alias group for which at least one member is listed in
    keep_fields.
  • Added regression tests in test/plugins/test_zero.py verifying that
    specifying art, genre, genres, or artist in keep_fields
    preserves the metadata on disk.
  • Added changelog entry in docs/changelog.rst.

Fixes #7069.

2.14.1-ls10

Choose a tag to compare

@github-actions github-actions released this 22 Nov 17:11

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.14.1-ls9...2.14.1-ls10

Upstream changes

Source: https://github.com/beetbox/beets/releases/tag/v2.14.1

Bug fixes

  • Discogs Plugin: Read the release month and day from the API's released field instead of only the year. Fix Discogs match overwriting month and day tags on import.
  • import command Fix interactive importer ignoring candidates from manual search (e) and manual ID (i) entry. 🐛 (#7000)
  • Lyrics Plugin: Support 3-decimal millisecond timestamps (e.g. [mm:ss.xxx]) in LRC parsing, fixing an issue where synced lyrics with millisecond precision were erroneously rejected and fell back to plain lyrics. 🐛 (#7001)
  • Add a configurable tempfile_prefix for temporary files created during cross-filesystem moves, avoiding hidden-file behavior on Windows and Samba shares caused by a hard-coded leading dot ('.'). 🐛 (#7033)
  • Empty leading path-format fields (e.g. from missing metadata) combined with a custom Replace Plugin configuration no longer produce an absolute destination path that escapes the library or Convert Plugin destination directory; leading path separators are now stripped from the rendered path. 🐛 (#4889)
  • Skip archive importer tests (TestImport7z and TestImportRar) when their optional dependencies (py7zr or rarfile / unrar) are not available. 🐛 (#7002)

Other changes

  • Duplicates Plugin: Improve the documentation of the checksum option: explain how the external command is run, remove the broken md5sum {file} example and show how to use such commands through a wrapper script. 🐛 (#3979)
  • Use bytes instead of memoryview for SQLite path storage and query parameters.

nightly-718dc3ae-ls22

nightly-718dc3ae-ls22 Pre-release
Pre-release

Choose a tag to compare

CI

Test report · Build status

LinuxServer changes

Full Changelog: nightly-718dc3ae-ls21...nightly-718dc3ae-ls22

Upstream changes

Source: beetbox/beets@718dc3a

smartplaylist: accept library for relative_to (#7175)

Description

Fixes #5348.
proposed solution: The playlist plugin accepts library for relative_to
however smartplaylist treated every value as a path. Setting
relative_to: library made paths relative to a folder named library in
the current directory, rather than to the music library. This makes
smartplaylist accept library for both the relative_to option and the
relative-to flag. Paths are then made relative to the library directory,
so the two plugins can be used together without a hardcoded path.

To Do

  • [ x] Documentation. (If you've added a new command-line flag, for
    example, find the appropriate page under docs/ to describe it.)
  • [x ] Changelog. (Add an entry to docs/changelog.rst to the bottom of
    one of the lists near the top of the document.)
  • [ x] Tests. (Very much encouraged but not strictly required.)

nightly-cf0983a3-ls18

nightly-cf0983a3-ls18 Pre-release
Pre-release

Choose a tag to compare

CI

Test report · Build status

LinuxServer changes

Full Changelog: nightly-8f7ba350-ls17...nightly-cf0983a3-ls18

Upstream changes

Source: beetbox/beets@cf0983a

titlecase: fix beet completion crash when the plugin is enabled (#7161)

With plugins: titlecase, beet completion exits 1:

optparse.OptionConflictError: option -l/--limit: conflicting option string(s): -l, --limit

TitlecasePlugin.commands() adds the limit option to a parser built
once in __init__. print_completion calls plugins.commands() a
second time, so the option is added twice. This came in with #7003.

The fix adds the option in __init__, which is where duplicates,
ftintitle and missing add theirs. Other plugins build their parser
inside commands(), so titlecase is the only one affected.

Testing

  • New test: test_commands_can_be_requested_twice. It fails without the
    fix with the error above.
  • beet completion with the plugin enabled: exit 1 before, exit 0
    after.
  • beet titlecase --help still lists --limit.
  • Full suite on Python 3.11: 2817 passed, 182 skipped. test_completion
    itself was skipped because my test image has no bash-completion package.
  • ruff check and ruff format --check pass on the changed Python
    files.

AI disclosure

As AI_POLICY.md asks: an LLM-based review tool, arnx, found this while
testing #7003, and Claude wrote the fix. I reproduced the crash, tested,
reviewed the change and I'm answering for it here.