feat(sonarr): add monitorNewItems option to sonarr settings & modal (#2071)
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?: SonarrSeries['monitorNewItems'];
|
||||
searchNow?: boolean;
|
||||
}
|
||||
|
||||
@@ -269,6 +271,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 {
|
||||
|
||||
@@ -693,6 +693,7 @@ export class MediaRequestSubscriber implements EntitySubscriberInterface<MediaRe
|
||||
seriesType,
|
||||
tags,
|
||||
monitored: true,
|
||||
monitorNewItems: sonarrSettings.monitorNewItems,
|
||||
searchNow: !sonarrSettings.preventSearch,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user