From 536d74339c586d21eb373fde15c4e7c23c7d4d30 Mon Sep 17 00:00:00 2001 From: Anatole Sot <47571181+ano0002@users.noreply.github.com> Date: Wed, 14 Feb 2024 00:57:48 +0100 Subject: [PATCH] Added Lidarr settings --- server/lib/settings.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/server/lib/settings.ts b/server/lib/settings.ts index 10213a040..b3030c8d8 100644 --- a/server/lib/settings.ts +++ b/server/lib/settings.ts @@ -45,6 +45,7 @@ export interface TautulliSettings { } export interface DVRSettings { +export interface ArrSettings { id: number; name: string; hostname: string; @@ -64,6 +65,10 @@ export interface DVRSettings { tagRequests: boolean; } +export interface DVRSettings extends ArrSettings { + is4k: boolean; +} + export interface RadarrSettings extends DVRSettings { minimumAvailability: string; } @@ -95,6 +100,7 @@ export interface MainSettings { defaultQuotas: { movie: Quota; tv: Quota; + music: Quota; }; hideAvailable: boolean; localLogin: boolean; @@ -250,6 +256,7 @@ export type JobId = | 'plex-watchlist-sync' | 'radarr-scan' | 'sonarr-scan' + | 'lidarr-scan' | 'download-sync' | 'download-sync-reset' | 'image-cache-cleanup' @@ -264,6 +271,7 @@ interface AllSettings { tautulli: TautulliSettings; radarr: RadarrSettings[]; sonarr: SonarrSettings[]; + lidarr: ArrSettings[]; public: PublicSettings; notifications: NotificationSettings; jobs: Record; @@ -291,6 +299,7 @@ class Settings { defaultQuotas: { movie: {}, tv: {}, + music: {}, }, hideAvailable: false, localLogin: true, @@ -311,6 +320,7 @@ class Settings { tautulli: {}, radarr: [], sonarr: [], + lidarr: [], public: { initialized: false, }, @@ -478,6 +488,12 @@ class Settings { this.data.sonarr = data; } + get lidarr(): ArrSettings[] { + return this.data.lidarr; + } + set lidarr(data: ArrSettings[]) { + this.data.lidarr = data; + } get public(): PublicSettings { return this.data.public; }