Commit Graph
31 Commits
Author SHA1 Message Date
Šarūnas Nejus 28d9dec9fd display: use rich layout 2026-08-27 02:58:09 +01:00
Šarūnas Nejus 5933fcad85 Refactor template evaluation to handle format strings ONLY
- Handle formats as strings ONLY and evaluate them through a shared
  cached template helper.
- This removes the need for conditional logic that acts on Template
  objects or strings.
2026-08-05 01:56:59 +01:00
Šarūnas Nejus b2f52ac124 Remove syspath 2026-07-30 12:18:49 +01:00
Šarūnas Nejus 951e32a852 Use pathlib.Path wherever possible in tests 2026-07-30 12:18:49 +01:00
Sai Asish Y 05437408b2 lyrics: normalize missing lyrics body in from_item
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
2026-07-30 13:04:58 +02:00
Sai Asish Y 9667d0fcf7 lyrics: treat missing lyrics body as empty text instead of crashing
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
2026-07-30 13:04:58 +02:00
Šarūnas Nejus 02a2c5700a Make RSRC a pathlib.Path 2026-07-24 17:03:57 +01:00
Vinícius Martins CotrimandMarina Pena Malschitzky Crespo 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