|
|
@ -43,7 +43,8 @@ const messages = defineMessages({
|
|
|
|
qualityprofile: 'Quality Profile',
|
|
|
|
qualityprofile: 'Quality Profile',
|
|
|
|
languageprofile: 'Language Profile',
|
|
|
|
languageprofile: 'Language Profile',
|
|
|
|
rootfolder: 'Root Folder',
|
|
|
|
rootfolder: 'Root Folder',
|
|
|
|
seriesType: 'Anime Series Type',
|
|
|
|
seriesType: 'Series Type',
|
|
|
|
|
|
|
|
animeSeriesType: 'Anime Series Type',
|
|
|
|
animequalityprofile: 'Anime Quality Profile',
|
|
|
|
animequalityprofile: 'Anime Quality Profile',
|
|
|
|
animelanguageprofile: 'Anime Language Profile',
|
|
|
|
animelanguageprofile: 'Anime Language Profile',
|
|
|
|
animerootfolder: 'Anime Root Folder',
|
|
|
|
animerootfolder: 'Anime Root Folder',
|
|
|
@ -246,6 +247,7 @@ const SonarrModal = ({ onClose, sonarr, onSave }: SonarrModalProps) => {
|
|
|
|
activeLanguageProfileId: sonarr?.activeLanguageProfileId,
|
|
|
|
activeLanguageProfileId: sonarr?.activeLanguageProfileId,
|
|
|
|
rootFolder: sonarr?.activeDirectory,
|
|
|
|
rootFolder: sonarr?.activeDirectory,
|
|
|
|
seriesType: sonarr?.seriesType,
|
|
|
|
seriesType: sonarr?.seriesType,
|
|
|
|
|
|
|
|
animeSeriesType: sonarr?.animeSeriesType,
|
|
|
|
activeAnimeProfileId: sonarr?.activeAnimeProfileId,
|
|
|
|
activeAnimeProfileId: sonarr?.activeAnimeProfileId,
|
|
|
|
activeAnimeLanguageProfileId: sonarr?.activeAnimeLanguageProfileId,
|
|
|
|
activeAnimeLanguageProfileId: sonarr?.activeAnimeLanguageProfileId,
|
|
|
|
activeAnimeRootFolder: sonarr?.activeAnimeDirectory,
|
|
|
|
activeAnimeRootFolder: sonarr?.activeAnimeDirectory,
|
|
|
@ -283,6 +285,7 @@ const SonarrModal = ({ onClose, sonarr, onSave }: SonarrModalProps) => {
|
|
|
|
activeProfileName: profileName,
|
|
|
|
activeProfileName: profileName,
|
|
|
|
activeDirectory: values.rootFolder,
|
|
|
|
activeDirectory: values.rootFolder,
|
|
|
|
seriesType: values.seriesType,
|
|
|
|
seriesType: values.seriesType,
|
|
|
|
|
|
|
|
animeSeriesType: values.animeSeriesType,
|
|
|
|
activeAnimeProfileId: values.activeAnimeProfileId
|
|
|
|
activeAnimeProfileId: values.activeAnimeProfileId
|
|
|
|
? Number(values.activeAnimeProfileId)
|
|
|
|
? Number(values.activeAnimeProfileId)
|
|
|
|
: undefined,
|
|
|
|
: undefined,
|
|
|
@ -540,6 +543,27 @@ const SonarrModal = ({ onClose, sonarr, onSave }: SonarrModalProps) => {
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="form-row">
|
|
|
|
|
|
|
|
<label htmlFor="seriesType" className="text-label">
|
|
|
|
|
|
|
|
{intl.formatMessage(messages.seriesType)}
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<div className="form-input-area">
|
|
|
|
|
|
|
|
<div className="form-input-field">
|
|
|
|
|
|
|
|
<Field
|
|
|
|
|
|
|
|
as="select"
|
|
|
|
|
|
|
|
id="seriesType"
|
|
|
|
|
|
|
|
name="seriesType"
|
|
|
|
|
|
|
|
disabled={!isValidated || isTesting}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<option value="standard">Standard</option>
|
|
|
|
|
|
|
|
<option value="daily">Daily</option>
|
|
|
|
|
|
|
|
</Field>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{errors.seriesType && touched.seriesType && (
|
|
|
|
|
|
|
|
<div className="error">{errors.seriesType}</div>
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div className="form-row">
|
|
|
|
<div className="form-row">
|
|
|
|
<label htmlFor="activeProfileId" className="text-label">
|
|
|
|
<label htmlFor="activeProfileId" className="text-label">
|
|
|
|
{intl.formatMessage(messages.qualityprofile)}
|
|
|
|
{intl.formatMessage(messages.qualityprofile)}
|
|
|
@ -727,15 +751,15 @@ const SonarrModal = ({ onClose, sonarr, onSave }: SonarrModalProps) => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="form-row">
|
|
|
|
<div className="form-row">
|
|
|
|
<label htmlFor="seriesType" className="text-label">
|
|
|
|
<label htmlFor="animeSeriesType" className="text-label">
|
|
|
|
{intl.formatMessage(messages.seriesType)}
|
|
|
|
{intl.formatMessage(messages.animeSeriesType)}
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<div className="form-input-area">
|
|
|
|
<div className="form-input-area">
|
|
|
|
<div className="form-input-field">
|
|
|
|
<div className="form-input-field">
|
|
|
|
<Field
|
|
|
|
<Field
|
|
|
|
as="select"
|
|
|
|
as="select"
|
|
|
|
id="seriesType"
|
|
|
|
id="animeSeriesType"
|
|
|
|
name="seriesType"
|
|
|
|
name="animeSeriesType"
|
|
|
|
disabled={!isValidated || isTesting}
|
|
|
|
disabled={!isValidated || isTesting}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<option value="standard">Standard</option>
|
|
|
|
<option value="standard">Standard</option>
|
|
|
@ -743,8 +767,8 @@ const SonarrModal = ({ onClose, sonarr, onSave }: SonarrModalProps) => {
|
|
|
|
</Field>
|
|
|
|
</Field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{errors.seriesType && touched.seriesType && (
|
|
|
|
{errors.animeSeriesType && touched.animeSeriesType && (
|
|
|
|
<div className="error">{errors.seriesType}</div>
|
|
|
|
<div className="error">{errors.animeSeriesType}</div>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="form-row">
|
|
|
|
<div className="form-row">
|
|
|
|