feat(sonarroptions): add monitorNewItems option to sonarr settings & modal
This commit is contained in:
@@ -49,6 +49,7 @@ export interface SonarrSeries {
|
||||
languageProfileId: number;
|
||||
seasonFolder: boolean;
|
||||
monitored: boolean;
|
||||
monitorNewItems: 'all' | 'none';
|
||||
useSceneNumbering: boolean;
|
||||
runtime: number;
|
||||
tvdbId: number;
|
||||
@@ -98,6 +99,7 @@ export interface AddSeriesOptions {
|
||||
tags?: number[];
|
||||
seriesType: SonarrSeries['seriesType'];
|
||||
monitored?: boolean;
|
||||
monitorNewItems?: 'all' | 'none';
|
||||
searchNow?: boolean;
|
||||
}
|
||||
|
||||
@@ -241,6 +243,7 @@ class SonarrAPI extends ServarrBase<{
|
||||
tags: options.tags,
|
||||
seasonFolder: options.seasonFolder,
|
||||
monitored: options.monitored,
|
||||
monitorNewItems: options.monitorNewItems,
|
||||
rootFolderPath: options.rootFolderPath,
|
||||
seriesType: options.seriesType,
|
||||
addOptions: {
|
||||
|
||||
@@ -93,6 +93,7 @@ export interface SonarrSettings extends DVRSettings {
|
||||
activeLanguageProfileId?: number;
|
||||
animeTags?: number[];
|
||||
enableSeasonFolders: boolean;
|
||||
monitorNewItems: 'all' | 'none';
|
||||
}
|
||||
|
||||
interface Quota {
|
||||
|
||||
@@ -664,6 +664,7 @@ export class MediaRequestSubscriber
|
||||
seriesType,
|
||||
tags,
|
||||
monitored: true,
|
||||
monitorNewItems: sonarrSettings.monitorNewItems,
|
||||
searchNow: !sonarrSettings.preventSearch,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user