Skip to content

Commit

Permalink
fix(sonarr.ts, mediarequest.ts): add missing seasonFolder option (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecelebi29 committed Dec 17, 2020
1 parent ad18a40 commit e9c899c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/api/sonarr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ interface AddSeriesOptions {
title: string;
profileId: number;
seasons: number[];
seasonFolder: boolean;
rootFolderPath: string;
monitored?: boolean;
searchNow?: boolean;
Expand Down Expand Up @@ -149,6 +150,7 @@ class SonarrAPI {
monitored: false,
}))
),
seasonFolder: options.seasonFolder,
monitored: options.monitored,
rootFolderPath: options.rootFolderPath,
addOptions: {
Expand Down
1 change: 1 addition & 0 deletions server/entity/MediaRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit e9c899c

Please sign in to comment.