|
|
|
@ -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<JobId, JobSettings>;
|
|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|