sonda/internal/storage
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi fb9e923197 feat(lidarr): set up Lidarr as a provider and read what it offers
Lidarr is a server of the user's own that looks for and downloads music. Sonda
never downloads; this is the first piece of letting an admin send it an artist.

- The `lidarr` provider, off by default: an address, an API key (32 hexadecimal
  characters, never returned) and, chosen once, a quality profile, a metadata
  profile, a root folder, the monitor option and whether to search for missing
  albums. It cannot be enabled without an address and a key.
- The address is checked: http or https, no user and password, no query, no
  fragment, no closing slash.
- A small client of its own, apart from the outbound one (which only makes plain
  GETs): the key travels in a header, no redirect is ever followed, answers and
  time are bounded, and the address and key are read for every request.
  Status, options, artist by MusicBrainz id and add (lookup, then the add that
  Lidarr's own screen sends).
- `GET /providers/lidarr/options` lists the profiles and root folders; the test of
  the provider checks the address and the key (`no_address` when it has none).
- Migration 0017 adds the address and the options to the provider settings.
- OpenAPI, contract test and README say what is sent and where.
2026-11-12 11:04:53 +01:00
..
about_test.go feat(about): artist descriptions from Wikipedia 2026-11-11 21:36:27 +01:00
artist_jobs.go feat(jobs): background jobs for artist photos and descriptions 2026-11-12 09:58:45 +01:00
artist_jobs_test.go feat(jobs): background jobs for artist photos and descriptions 2026-11-12 09:58:45 +01:00
auth_test.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00
catalog.go fix(search): empty folded queries, compatibility forms, final sigma, start-up log 2026-11-12 10:24:44 +01:00
catalog_test.go feat(search): search ignores accents 2026-11-12 10:17:21 +01:00
discovery.go feat(search): search ignores accents 2026-11-12 10:17:21 +01:00
discovery_test.go fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +01:00
feedback.go fix(feedback): purge only what the provider named, no leak between users 2026-11-11 20:18:04 +01:00
feedback_test.go fix(feedback): purge only what the provider named, no leak between users 2026-11-11 20:18:04 +01:00
images.go feat(images): a background job that builds all the covers 2026-11-12 09:34:27 +01:00
images_test.go feat(images): a background job that builds all the covers 2026-11-12 09:34:27 +01:00
library.go feat(search): search ignores accents 2026-11-12 10:17:21 +01:00
library_test.go fix(images): purge removes every archive cover, the id of an emptied album moves on 2026-11-12 09:21:11 +01:00
listening.go fix(listening): report a deleted account first and document one event per play 2026-11-11 15:02:28 +01:00
providers.go feat(lidarr): set up Lidarr as a provider and read what it offers 2026-11-12 11:04:53 +01:00
providers_test.go feat(lidarr): set up Lidarr as a provider and read what it offers 2026-11-12 11:04:53 +01:00
refresh.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00
repos_test.go fix(listening): report a deleted account first and document one event per play 2026-11-11 15:02:28 +01:00
search_key.go fix(search): empty folded queries, compatibility forms, final sigma, start-up log 2026-11-12 10:24:44 +01:00
search_keys_test.go fix(search): empty folded queries, compatibility forms, final sigma, start-up log 2026-11-12 10:24:44 +01:00
storage.go fix(discovery): concurrent writes, adopted artists and a client that leaves 2026-11-11 16:47:33 +01:00
storage_test.go feat(lidarr): set up Lidarr as a provider and read what it offers 2026-11-12 11:04:53 +01:00
taste.go fix(taste): order by the score, clamp future events, keep tags short 2026-11-11 18:52:08 +01:00
taste_test.go fix(taste): order by the score, clamp future events, keep tags short 2026-11-11 18:52:08 +01:00
upgrade_test.go fix(library): make the libraries upgrade and validation robust 2026-11-11 13:34:44 +01:00
users.go fix(feedback): purge only what the provider named, no leak between users 2026-11-11 20:18:04 +01:00
usersettings.go fix(settings): strict body, deleted-account race, doc wording 2026-11-11 19:20:42 +01:00
usersettings_test.go fix(settings): strict body, deleted-account race, doc wording 2026-11-11 19:20:42 +01:00