Commit Graph
4856 Commits
Author SHA1 Message Date
Šarūnas Nejus 8e5b7741d6 Make Library.directory a Path 2026-09-05 21:02:30 +01:00
Šarūnas Nejus 7dcddf659a And a small fetchart refactor 2026-09-05 01:52:24 +01:00
Šarūnas Nejus 7592c14ebf Migrate art functionalities to use pathlib.Path 2026-09-05 01:52:24 +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
Sebastian Mohr 8859bb716b Small rework on the polling logic 2026-09-03 16:37:00 +02:00
Sebastian Mohr efec4bcee6 Suppress more errors during token loading to catch corrupted files. 2026-09-03 16:37:00 +02:00
Sebastian Mohr ad51786d10 Add interactive plex.tv authentication
Rewrite the plugin around Plex' PIN authentication flow: running
`beet plexupdate --auth` opens a browser window and stores the
obtained token together with a generated client identifier in a
token file (`plex_token.json`) next to the beets configuration.

- add a PlexSession (based on TimeoutAndRetrySession) that handles
  token persistence, plex.tv PIN polling, and attaching the token to
  local server requests
- look up the music library section through the JSON API instead of
  parsing XML
- refresh the Plex library once, at the end of commands that changed
  the library; report missing sections and 401 responses clearly
  instead of failing silently
- deprecate the manual `token` configuration option in favor of the
  interactive login
2026-09-03 16:37:00 +02: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
shuwen.wu 15637ed148 fix(scrub): skip scrubbing when --nowrite is passed
When `beet import -W` (--nowrite) is run with the scrub plugin
enabled (auto=True), the plugin was scrubbing (removing) tags even
though --nowrite means "don't write to files". This caused tags
to be lost.

The fix adds a guard at the start of import_task_files to skip
the entire scrub operation when should_write() returns False,
making the scrub plugin respect the --nowrite flag like other
plugins do.

Fixes #6958
2026-09-03 02:46:03 +08: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
Dmitry Rantovov 029a9bb877 Remove the dead args self-assignment in the web command 2026-09-02 07:43:59 +03:00
J0J0 Todos fe7ff0d595 importsource: Only register listener if configured (#6297)
## Description

If the feature is not enabled, registering a listener is not required.

Added 2 new tests that prove this is the case.
2026-09-01 11:32:52 +00:00
Šarūnas Nejus 0e14dce718 Merge branch 'master' into typing-follow-up 2026-09-01 11:07:26 +01:00
Šarūnas Nejus e4256b5232 Fix chroma original_year type 2026-09-01 10:55:55 +01:00
Šarūnas Nejus cfe1a52f41 Remove incorrect comment 2026-09-01 10:55:55 +01:00
Šarūnas Nejus 388689d911 Merge branch 'master' into master 2026-09-01 09:30:49 +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 95a300130b typing: relax FieldTFuncs output type 2026-08-31 11:27:12 +01:00
Šarūnas Nejus 5c3695da26 typing: various consistency fixes 2026-08-31 11:27:12 +01:00
Šarūnas Nejus 0b5a5b0350 typing: fix missing types in plugins 2026-08-31 11:27:12 +01:00
Šarūnas Nejus 11d41aee7d typing: add missing types to plugins 2026-08-31 11:27:12 +01:00
Šarūnas Nejus 6dbb4ce756 typing: fix types and refactor duplicates plugin 2026-08-31 11:19:31 +01:00
Šarūnas Nejus 8e4fa56acb typing: add types to duplicates plugin 2026-08-31 11:01:12 +01:00
Šarūnas Nejus 9611a23a87 typing: fix annotations in thumbnails 2026-08-31 10:55:33 +01:00
Šarūnas Nejus 6b4f8fa25b typing: add annotations to thumbnails 2026-08-31 10:55:33 +01:00
Šarūnas Nejus b64c693252 typing: fix annotations in mpdstats 2026-08-31 10:55:33 +01:00
Šarūnas Nejus 4f0ac15b99 typing: add annotations to mpdstats 2026-08-31 10:55:33 +01:00
Šarūnas Nejus 4e1fdf0bf3 typing: fix annotations in metadata source plugins 2026-08-31 10:48:16 +01:00
Šarūnas Nejus 21e045795d typing: add annotations to metadata source plugins 2026-08-31 10:48:16 +01:00
Šarūnas Nejus 0f27b2964c web: Remove typing t alias 2026-08-31 10:48:13 +01:00
Šarūnas Nejus 21ffeff202 aura: fix filtering and sorting 2026-08-29 21:15:38 +01:00
Šarūnas Nejus 526f6ec4ba typing: fix API and export plugins 2026-08-29 21:15:38 +01:00
Šarūnas Nejus ee4d6eef36 typing: add annotations to API and export plugins 2026-08-29 21:10:29 +01:00
Šarūnas Nejus 743eb3b36b bpd: fix search when any field is used 2026-08-29 17:49:13 +01:00
Šarūnas Nejus bfe5ba51c5 typing: fix annotations in bpd plugin 2026-08-29 17:49:13 +01:00
Šarūnas Nejus 1ae8778385 typing: add annotations to bpd plugin 2026-08-29 17:38:48 +01:00
Šarūnas Nejus 2971393618 Replace do_query with model-specific logic
This allows to define a proper return type for input_select_objects.
2026-08-27 06:47:39 +01:00
Šarūnas Nejus 01375c7392 typing: fix core annotations 2026-08-22 17:49:49 +01:00
Šarūnas Nejus d9e2b65758 Merge branch 'master' into fix/lrclib-null-lyrics 2026-08-22 17:41:55 +01:00
Šarūnas Nejus 914441da16 typing: fix command handlers types 2026-08-21 20:56:38 +01:00
Ognyan Moore 68bb421378 pass in extension, not suffix 2026-08-20 11:40:44 +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 6241139600 typing: define explicit optparse.Values for each command 2026-08-19 23:57:05 +01:00
Šarūnas Nejus 14eabc6060 typing: add types to command handlers 2026-08-19 23:57:01 +01:00
Šarūnas Nejus 27900f58fb Prefer imports from modules that provide import aliases 2026-08-18 23:20:39 +01:00
Šarūnas Nejus f37306b0cc typing: remove redundant types 2026-08-18 23:20:39 +01:00
Šarūnas Nejus 4aa5aa62ac typing: fix types in beetsplug._utils.art 2026-08-18 23:20:38 +01:00