Commit Graph

25 Commits

Author SHA1 Message Date
Šarūnas Nejus
bfd3b7e04a Make RSRC a pathlib.Path 2026-07-21 16:23:49 +01:00
Vinícius Martins Cotrim
6a051f9699 Recognize native Spotify URIs when extracting IDs (#6840)
### Description

`extract_release_id` now accepts the native Spotify URI format
(`spotify:album:<id>`, `spotify:track:<id>`) in addition to the already
supported `open.spotify.com` URLs and bare IDs.

Co-authored-by: Marina Pena Malschitzky Crespo <marinacrespo@estudante.ufscar.br>
2026-07-15 21:21:25 +02:00
Sebastian Mohr
757af4aebd util/m3u: Removed unittest.TestCase 2026-07-14 17:24:17 +02:00
Šarūnas Nejus
8020c07acf Track instrumental lyrics metadata
- Leave lyrics text empty when a backend reports an instrumental track and
  persist that state in lyrics_instrumental.
2026-07-13 01:07:59 +01:00
Šarūnas Nejus
aef9c64cb0 Move DummyIMBackend to fixtures 2026-06-30 21:48:40 +01:00
Šarūnas Nejus
900543baca Move test modules under folders that they belong to 2026-06-30 21:48:40 +01:00
Šarūnas Nejus
9efb7eabdb Clarify the logic inside get_path_formats 2026-05-24 15:09:58 +01:00
Sebastian Mohr
adfb73b66d Run ruff format 2026-05-20 16:53:06 +02:00
Sebastian Mohr
634b12846f Added tests for the id extractor. 2026-04-20 20:55:47 +02:00
ShimmerGlass
142e946588 fix(fetchart): sources definition
The fetchart plugin would silently drop unknown sources defined in
config, leading to hard to debug problems.
The plugin now errors when an unknown source is configured, or when no
sources are configured.
In addition, a single string is now a valid value for `sources` to
either enable all sources with an `*` or a single source.

Fixes: #6336
2026-04-07 18:55:53 +02:00
Šarūnas Nejus
89784c6e3b Middle and last line widths are always the same for split_into_lines 2026-03-17 17:59:51 +00:00
Šarūnas Nejus
ffb4329006 Fix layout references 2026-03-14 12:02:30 +00:00
Šarūnas Nejus
6a93bf54af Move layout utils to beets/util/layout.py 2026-03-14 12:02:30 +00:00
Šarūnas Nejus
1d54f2bf66 Fix diff references 2026-03-14 12:02:30 +00:00
Šarūnas Nejus
756d5c9921 Move diff utils to beets/util/diff.py 2026-03-14 11:58:04 +00:00
Šarūnas Nejus
a6fcb7ba0f Fix references to color utils 2026-03-14 11:57:18 +00:00
Šarūnas Nejus
aa52aaca56 Move colorisation to beets/util/color.py 2026-03-14 11:57:18 +00:00
Šarūnas Nejus
a7325e7483 Skip langdetect-dependent tests when package is not installed
Add a `requires_import` pytest marker and `is_importable` fixture to
conditionally skip or adjust assertions based on whether optional
dependencies are available. Apply this to `langdetect`-dependent
language detection tests in lyrics and migration test suites.
2026-03-08 08:19:55 +00:00
Šarūnas Nejus
05a822dd5c Move Lyrics class under beets.util as it is used by migrations 2026-03-06 10:57:08 +00:00
Šarūnas Nejus
c52656fb0a Enable RUF rules 2026-01-13 20:55:40 +00:00
Šarūnas Nejus
9d088ab69f Move human formatting functions under beets.util.units 2025-07-06 16:09:50 +01:00
Šarūnas Nejus
0da6192a4a Test sanitize_pairs 2025-05-31 19:17:43 +01:00
Šarūnas Nejus
509cbdcbe4 Move sanitize_pairs/choices from plugins to util module 2025-05-31 17:55:41 +01:00
Šarūnas Nejus
8936ae4e6f Test URL extraction against other sources 2025-05-17 14:57:34 +01:00
Šarūnas Nejus
b520981c9c plugins: restructure id extraction 2025-05-17 14:57:34 +01:00