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.
9 lines
721 B
SQL
9 lines
721 B
SQL
-- Lidarr is the user's own server: it has an address, and the choices an admin makes once for
|
|
-- what is sent when an artist is added. The columns are empty for the other providers.
|
|
|
|
ALTER TABLE provider_settings ADD COLUMN url TEXT NOT NULL DEFAULT '';
|
|
ALTER TABLE provider_settings ADD COLUMN quality_profile_id INTEGER NOT NULL DEFAULT 0;
|
|
ALTER TABLE provider_settings ADD COLUMN metadata_profile_id INTEGER NOT NULL DEFAULT 0;
|
|
ALTER TABLE provider_settings ADD COLUMN root_folder TEXT NOT NULL DEFAULT '';
|
|
ALTER TABLE provider_settings ADD COLUMN monitor TEXT NOT NULL DEFAULT '';
|
|
ALTER TABLE provider_settings ADD COLUMN search_missing INTEGER NOT NULL DEFAULT 0;
|