Switched up DVRSettings to extend ArrSettings

Anatole Sot 9 months ago
parent 536d74339c
commit 9b83161a2f

@ -44,7 +44,6 @@ export interface TautulliSettings {
externalUrl?: string;
}
export interface DVRSettings {
export interface ArrSettings {
id: number;
name: string;
@ -57,7 +56,6 @@ export interface ArrSettings {
activeProfileName: string;
activeDirectory: string;
tags: number[];
is4k: boolean;
isDefault: boolean;
externalUrl?: string;
syncEnabled: boolean;
@ -85,6 +83,7 @@ export interface SonarrSettings extends DVRSettings {
enableSeasonFolders: boolean;
}
interface Quota {
quotaLimit?: number;
quotaDays?: number;
@ -491,9 +490,11 @@ class Settings {
get lidarr(): ArrSettings[] {
return this.data.lidarr;
}
set lidarr(data: ArrSettings[]) {
this.data.lidarr = data;
}
get public(): PublicSettings {
return this.data.public;
}

Loading…
Cancel
Save