Files
beets/test/plugins
Šarūnas Nejus 334bbde826 Make album, duration required for LyricsPlugin.fetch
Since at least one Backend requires album` and `duration` arguments
(`LRCLib`), the caller (`LyricsPlugin.fetch_item_lyrics`) must always
provide them.

Since they need to provided, we need to enforce this by defining them as
positional arguments.

Why is this important? I found that integrated `LRCLib` tests have been
passing, but they called `LRCLib.fetch` with values for `artist` and
`title` fields only, while the actual functionality *always* provides
values for `album` and `duration` fields too.

When I adjusted the test to provide values for the missing fields,
I found that it failed. This makes sense: Lib `album` and `duration`
filters are strict on LRCLib, so I was not surprised the lyrics could
not be found.

Thus I adjusted `LRCLib` backend implementation to only filter by each
of these fields when their values are truthy.
2025-01-19 01:48:04 +00:00
..
2023-10-17 19:39:03 +10:00
2024-09-21 11:57:48 +01:00
2024-12-10 06:10:04 +00:00
2024-09-21 11:57:48 +01:00
2024-08-16 17:47:23 +01:00
2024-10-30 12:13:30 +00:00
2024-09-21 11:59:18 +01:00
2024-08-12 08:43:42 +01:00
2024-09-21 11:57:48 +01:00
2024-08-12 08:43:42 +01:00
2024-09-21 11:57:48 +01:00
2024-08-12 08:43:41 +01:00
2024-08-12 08:43:42 +01:00
2024-08-12 08:43:42 +01:00
2024-08-12 08:43:42 +01:00
2024-08-12 08:43:42 +01:00
2024-08-12 08:43:42 +01:00
2024-09-21 11:57:48 +01:00
2024-08-12 08:43:42 +01:00
2024-08-12 08:43:42 +01:00
2024-09-21 11:57:48 +01:00
2024-08-12 08:43:42 +01:00
2024-08-12 08:43:42 +01:00
2024-09-21 11:57:48 +01:00
2024-08-12 08:49:30 +01:00
2024-08-12 08:43:42 +01:00
2024-08-12 08:43:42 +01:00
2024-08-12 08:43:42 +01:00
2024-09-21 11:59:18 +01:00
2024-08-12 08:43:42 +01:00
2024-08-12 08:43:43 +01:00