diff --git a/server/api/sonarr.ts b/server/api/sonarr.ts index 72a2de6b4..4a86b68bb 100644 --- a/server/api/sonarr.ts +++ b/server/api/sonarr.ts @@ -76,6 +76,7 @@ interface AddSeriesOptions { title: string; profileId: number; seasons: number[]; + seasonFolder: boolean; rootFolderPath: string; monitored?: boolean; searchNow?: boolean; @@ -149,6 +150,7 @@ class SonarrAPI { monitored: false, })) ), + seasonFolder: options.seasonFolder, monitored: options.monitored, rootFolderPath: options.rootFolderPath, addOptions: { diff --git a/server/entity/MediaRequest.ts b/server/entity/MediaRequest.ts index 1bfe23741..e584dc55c 100644 --- a/server/entity/MediaRequest.ts +++ b/server/entity/MediaRequest.ts @@ -335,6 +335,7 @@ export class MediaRequest { title: series.name, tvdbid: series.external_ids.tvdb_id, seasons: this.seasons.map((season) => season.seasonNumber), + seasonFolder: sonarrSettings.enableSeasonFolders, monitored: true, searchNow: true, });