4497 Commits
Author SHA1 Message Date
Šarūnas Nejus c74541a3fa Merge branch 'master' into fix-4889-empty-leading-path-field 2026-09-13 13:55:15 +01:00
Maksymilian Babarowski 3f138e2ac3 discogs: read the release month and day from released 2026-09-12 16:12:39 +02:00
Šarūnas Nejus e16144e298 importer: skip TestImport7z and TestImportRar when optional dependencies are missing (#7004)
## Description

Fixes #7002.

Both `py7zr` and `rarfile` are optional dependencies specified under the
`import` extra (`beets[import]`).
When running the test suite in environments where `py7zr` is not
installed (e.g. minimal packaging buildroots such as Fedora Rawhide),
`ArchiveImportTask.handlers` does not register the 7z extraction
handler. Consequently, `TestImport7z` runs unconditionally and treats
`archive.7z` as an ordinary file rather than an archive, failing with:
```text
FAILED test/test_importer.py::TestImport7z::test_import_zip
E       assert 0 == 1
E        +  where 0 = len(<beets.dbcore.db.Results object>)
E        +    where <beets.dbcore.db.Results object> = items()
WARNING beets:stages.py:58 No files imported from .../test/rsrc/archive.7z
```

Additionally, `TestImportRar` previously checked only for the presence
of the `unrar` executable via `has_program("unrar")`, but extraction
also depends on the Python `rarfile` package being importable.

This PR:
1. Adds `NEEDS_PY7ZR` (`is_importable("py7zr")`) and `NEEDS_RARFILE`
(`is_importable("rarfile") and has_program("unrar")`) test skip markers
in `beets.test.helper`.
2. Marks `TestImport7z` with `@NEEDS_PY7ZR`.
3. Marks `TestImportRar` with `@NEEDS_RARFILE`.
4. Adds an unreleased bug fix entry to `docs/changelog.rst`.

## To Do

- [x] ~Documentation.~
- [x] Changelog.
- [x] Tests.
2026-09-12 09:51:48 +00:00
Šarūnas Nejus c6906dc139 Merge branch 'master' into fix-testimport7z-optional-py7zr 2026-09-12 08:57:16 +01:00
Šarūnas Nejus a831b1beae Merge branch 'master' into docs-add-beets-genrecanon 2026-09-12 08:56:14 +01:00
Michael Landry 6411f82ea0 lyrics: support 3-decimal millisecond timestamps in LRC parsing
LRCLIB commonly returns LRC timestamps with 3 decimal places ([mm:ss.xxx]).
LINE_PARTS_PAT and LRC_TIMESTAMP_PAT strictly expected two digits (\.\d\d),
causing verify_synced_lyrics to fail when the final line of a song has
millisecond precision (e.g. Final Light - Final Light ending with [06:07.301])
and fall back to plain text.

Additionally, interior 3-decimal lines had timestamps dropped from ID3 SYLT
frames and leaked raw bracketed tags into plain text extraction.

- Update regexes to accept \.\d{2,3}
- Parse both 2-digit (cs) and 3-digit (ms) fractions in Lyrics.sylt
- Add unit tests and changelog entry
2026-09-11 02:35:02 +00:00
Gerald B Cox 418cca43c3 docs: order genrecanon entry alphabetically 2026-09-10 12:00:27 -07:00
Gerald B Cox d49faf890b docs: remove trailing whitespace 2026-09-10 11:52:37 -07:00
Gerald B Cox d614c19bf6 docs: apply documentation formatting 2026-09-10 11:51:04 -07:00
Gerald B Cox d25d3107e3 docs: add beets-genrecanon to external plugins 2026-09-10 11:06:49 -07:00
Sebastian Cao aab50dfb73 fix(library): don't let an empty leading path field escape the base directory 2026-09-10 15:01:19 +08:00
Shurong Cao 436f3a579f importer: skip TestImport7z and TestImportRar when optional dependencies are missing
Skip TestImport7z when py7zr cannot be imported, and skip TestImportRar when rarfile or unrar is unavailable.

Fixes #7002
2026-09-09 22:34:07 +08:00
Sebastian Cao 0094053dfb changelog: move the entry under unreleased after the 2.14.0 release 2026-09-08 13:17:08 +08:00
snejus e2710a76ce Increment version to 2.14.0 2026-09-07 20:23:30 +00:00
Šarūnas Nejus eecd7f003c Deprecate limit plugin 2026-09-07 20:34:48 +01:00
Šarūnas Nejus f09a6f9e29 list: support sorting by flexible attributes with limit 2026-09-07 20:34:34 +01:00
Šarūnas Nejus 02b5186998 list: add -l flag, support LIMIT clause 2026-09-07 20:34:34 +01:00
slmingolandClaude Sonnet 4.6 36673f8194 docs: fix broken links and expand linkcheck_ignore
- CONTRIBUTING.rst: update test_query.py path to test/dbcore/test_query.py
- docs/conf.py: ignore sonos.com, stackoverflow.com, superuser.com,
  support.discogs.com (all block crawlers with 403), forge.kanis.fr
  (SSL cert mismatch), and id3.org (intermittent 500 errors)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BbXC9acP8vTyQr59J5UbCV
2026-09-07 09:11:56 -04:00
Maxr1998 016f8df4a1 playcount: add changelog for earlier fixes 2026-09-07 08:20:07 +01:00
Sebastian Cao ebff401f35 merge upstream master into deezer-compilation-detection-4057 2026-09-06 14:04:15 +08:00
Sebastian Cao 24f1002400 address review: bold the note, highlight code blocks 2026-09-06 14:03:37 +08:00
Barrett Clark 7860e6b854 Merge branch 'master' into import-rescan-directory 2026-09-05 08:56:09 -05:00
Sebastian Cao 59736ebfac fix(deezer): detect compilations credited to a single main artist 2026-09-05 16:49:19 +08:00
Šarūnas Nejus 71f616c0c7 Merge branch 'master' into tarfile-bugfix 2026-09-05 02:03:04 +01:00
Šarūnas Nejus 5002bb8624 Merge branch 'master' into fix/tidal-search-api 2026-09-05 00:15:32 +01:00
Šarūnas Nejus b9fbc51b62 Merge branch 'master' into fix-scrub-nowrite 2026-09-05 00:05:38 +01:00
Trey Turner 31b0a226f8 fix(tidal): adapt to current search API
Fixes #6989
2026-09-04 19:53:59 +00:00
dajiaohuang fd93aa8648 docs: wrap changelog lines for formatter 2026-09-04 14:39:58 +08:00
Barrett ClarkandClaude Sonnet 5 8f86ec1f1c Add "Rescan directory" import prompt choice
When beets can't confidently match an album, the interactive import
prompt now offers a "Rescan directory" option alongside Skip/Use
as-is/etc. It re-reads the task's directories from disk and re-runs
the match, so files can be cleaned up (duplicates, junk) mid-import
without restarting the whole beet import run.

- New Action.RESCAN enum member (actions.py) and set_choice wiring
  (tasks.py).
- New "r" PromptChoice, shown for album tasks with a toppath, added
  to both the "no candidates" and "pick a candidate" prompt variants
  since they share the same choice list (session.py).
- New rescan_tasks() generator and a RESCAN branch in the user_query
  pipeline stage that re-extends the pipeline with freshly-discovered
  tasks, mirroring the existing TRACKS/ALBUMS branches (stages.py).
  Discovery is delegated to ImportTaskFactory.paths(), the same logic
  the initial scan uses; rescan_tasks only scopes the walk and keeps
  the original toppath on the emitted tasks (for move pruning and
  resume bookkeeping).
- Handles nested multi-disc albums, flattened sibling discs, the
  "Group albums" choice (withheld -- no directory scope to rescan),
  and a plugin forcing Action.RESCAN onto a task with no valid rescan
  scope (singleton, toppath-less, or grouped).
- Tests, auto-tagger guide entry, changelog entry.

Comments and docstrings are kept deliberately brief per review
feedback; see the PR description for the fuller design rationale and
the known limitations (sibling-disc/loose-parent edge cases).

Fixes #166

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019mndYhbgqCtkRY3wppFoQb
2026-09-03 18:33:43 -05:00
Sebastian Mohr ad2665c595 Update docs and changelog
Rewrite the plugin documentation in the current style with dedicated
sections on authentication, usage, and configuration, and mark the
manual `token` option as deprecated. Add a changelog entry for the
new `beet plexupdate --auth` command.
2026-09-03 16:37:00 +02:00
shuwen.wu 37d5e05ecf docs: add changelog entry for scrub --nowrite fix
Add changelog entry per reviewer feedback (snejus).
2026-09-03 11:49:12 +08:00
Sebastian Mohr deedd5c608 Pass track duration as length for matching
TrackInfo expects the converted ISO 8601 duration in its length
field. The plugin passed it as duration instead, which TrackInfo
silently stores as a flexible attribute while length stays None, so
Tidal candidates were matched without any track-length distance.

Pass the duration as length and update the parsing tests to assert
info.length instead of the incorrect info.duration flex field.
2026-09-02 21:57:24 +02:00
Alok Saboo e1f3ad5d85 lint 2026-09-02 10:57:44 -04:00
Alok Saboo df8236e354 edit: allow item-only fields to remain in per-track documents during interactive import 2026-09-02 10:57:44 -04:00
Šarūnas Nejus 3e90e2168e Merge branch 'master' into docs/fix-dead-links 2026-09-01 10:50:09 +01:00
Šarūnas Nejus 345e839314 Merge branch 'master' into have-convert-plugin-use-new-format-in-pathing 2026-09-01 09:08:17 +01:00
Šarūnas Nejus 11d41aee7d typing: add missing types to plugins 2026-08-31 11:27:12 +01:00
Šarūnas Nejus 21ffeff202 aura: fix filtering and sorting 2026-08-29 21:15:38 +01:00
Šarūnas Nejus 743eb3b36b bpd: fix search when any field is used 2026-08-29 17:49:13 +01:00
Shurong Cao 9d15446c3d docs: fix two dead external links
- Update the librosa beat_track API reference path.

- Update the Apple Core Audio developer documentation link.
2026-08-28 03:51:05 +08:00
Šarūnas Nejus 03877cc20b move: fix moving albums in timid mode 2026-08-27 06:47:40 +01:00
Šarūnas Nejus e5846915d4 modify: fix selecting objects 2026-08-27 06:47:39 +01:00
Šarūnas Nejus d9e2b65758 Merge branch 'master' into fix/lrclib-null-lyrics 2026-08-22 17:41:55 +01:00
Ognyan Moore 9aa05a0980 Move changelog message to unreleased section. 2026-08-20 11:41:20 +03:00
Ognyan Moore 9d0e512a5b Use new format in determining destination.
When figuring out what the filepath should be for the converted file,
we pass along the new item `fmt` property.
2026-08-20 11:40:42 +03:00
Šarūnas Nejus a3bb963ea0 ipfs: fix play command 2026-08-20 00:51:44 +01:00
Šarūnas Nejus 0c05551251 Update events docs 2026-08-18 10:46:33 +01:00
Šarūnas Nejus cf385e7614 Merge branch 'master' into fix/skip-empty-metadata-search 2026-08-17 09:35:05 +01:00
Šarūnas Nejus 9b16f67af1 Remove bluelet in favor of using asyncio in bpd plugin 2026-08-17 05:05:21 +01:00
David Howard cd50a42c04 lyrics: don't match LRCLib entries that have no lyrics
LRCLib stores track metadata independently of the lyrics themselves, so an
entry can come back with both `plainLyrics` and `syncedLyrics` null while
`instrumental` is False. `LRCLyrics.is_valid` accepted such an entry as a
match on duration alone, and `get_text` then returned `self.plain`, i.e.
None, despite being annotated `-> str`.

The None propagated into `Lyrics`, and the first access of its text raised

    AttributeError: 'NoneType' object has no attribute 'splitlines'

`beet lyrics` surfaced this per track, but during an import the exception
escaped the pipeline stage and aborted the entire run: one such track
stranded every file queued behind it.

Treat an entry with no lyrics text as not a match, so the search moves on to
other candidates and backends and ultimately reports that no lyrics were
found. That is deliberately distinct from an instrumental track, where "no
lyrics" is itself the answer and the existing `instrumental` handling still
applies. Marking these as instrumental would assert something the API
response does not tell us.

Also fall back to synced lyrics when only `plainLyrics` is null, rather than
discarding lyrics we do have, and correct the annotations: `plainLyrics` and
`LRCLyrics.plain` are both nullable.
2026-08-15 17:49:54 -07:00