diff --git a/server/entity/MediaRequest.ts b/server/entity/MediaRequest.ts index e980860c6c..ba67ab7bef 100644 --- a/server/entity/MediaRequest.ts +++ b/server/entity/MediaRequest.ts @@ -984,7 +984,7 @@ export class MediaRequest { (keyword) => keyword.id === ANIME_KEYWORD_ID ) ) { - seriesType = 'anime'; + seriesType = sonarrSettings.animeSeriesType ?? 'anime'; } let rootFolder = diff --git a/server/lib/settings.ts b/server/lib/settings.ts index 564334a6f0..8381b51089 100644 --- a/server/lib/settings.ts +++ b/server/lib/settings.ts @@ -69,6 +69,8 @@ export interface RadarrSettings extends DVRSettings { } export interface SonarrSettings extends DVRSettings { + seriesType: 'standard' | 'daily' | 'anime'; + animeSeriesType: 'standard' | 'daily' | 'anime'; activeAnimeProfileId?: number; activeAnimeProfileName?: string; activeAnimeDirectory?: string; diff --git a/src/components/Settings/SonarrModal/index.tsx b/src/components/Settings/SonarrModal/index.tsx index 6c61d5dbfe..729a40a7bf 100644 --- a/src/components/Settings/SonarrModal/index.tsx +++ b/src/components/Settings/SonarrModal/index.tsx @@ -43,6 +43,8 @@ const messages = defineMessages({ qualityprofile: 'Quality Profile', languageprofile: 'Language Profile', rootfolder: 'Root Folder', + seriesType: 'Series Type', + animeSeriesType: 'Anime Series Type', animequalityprofile: 'Anime Quality Profile', animelanguageprofile: 'Anime Language Profile', animerootfolder: 'Anime Root Folder', @@ -244,6 +246,8 @@ const SonarrModal = ({ onClose, sonarr, onSave }: SonarrModalProps) => { activeProfileId: sonarr?.activeProfileId, activeLanguageProfileId: sonarr?.activeLanguageProfileId, rootFolder: sonarr?.activeDirectory, + seriesType: sonarr?.seriesType, + animeSeriesType: sonarr?.animeSeriesType, activeAnimeProfileId: sonarr?.activeAnimeProfileId, activeAnimeLanguageProfileId: sonarr?.activeAnimeLanguageProfileId, activeAnimeRootFolder: sonarr?.activeAnimeDirectory, @@ -280,6 +284,8 @@ const SonarrModal = ({ onClose, sonarr, onSave }: SonarrModalProps) => { : undefined, activeProfileName: profileName, activeDirectory: values.rootFolder, + seriesType: values.seriesType, + animeSeriesType: values.animeSeriesType, activeAnimeProfileId: values.activeAnimeProfileId ? Number(values.activeAnimeProfileId) : undefined, @@ -537,6 +543,27 @@ const SonarrModal = ({ onClose, sonarr, onSave }: SonarrModalProps) => { )} +
+ +
+
+ + + + +
+
+ {errors.seriesType && touched.seriesType && ( +
{errors.seriesType}
+ )} +
+
+ +
+
+ + + + +
+
+ {errors.animeSeriesType && touched.animeSeriesType && ( +
{errors.animeSeriesType}
+ )} +