1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-18 21:35:27 -04:00

New: Set 'Release Type' during Manual Import

Closes #6681
This commit is contained in:
Mark McDowall
2024-04-05 23:11:17 -07:00
committed by GitHub
parent a169ebff2a
commit 74cdf01e49
10 changed files with 236 additions and 2 deletions
@@ -0,0 +1,17 @@
import ReleaseType from 'InteractiveImport/ReleaseType';
import translate from 'Utilities/String/translate';
export default function getReleaseTypeName(
releaseType?: ReleaseType
): string | null {
switch (releaseType) {
case 'singleEpisode':
return translate('SingleEpisode');
case 'multiEpisode':
return translate('MultiEpisode');
case 'seasonPack':
return translate('SeasonPack');
default:
return translate('Unknown');
}
}