|
|
@ -120,6 +120,7 @@ namespace Ombi.Core.Senders
|
|
|
|
|
|
|
|
|
|
|
|
int qualityToUse;
|
|
|
|
int qualityToUse;
|
|
|
|
string rootFolderPath;
|
|
|
|
string rootFolderPath;
|
|
|
|
|
|
|
|
string seriesType;
|
|
|
|
|
|
|
|
|
|
|
|
if (model.SeriesType == SeriesType.Anime)
|
|
|
|
if (model.SeriesType == SeriesType.Anime)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -128,6 +129,8 @@ namespace Ombi.Core.Senders
|
|
|
|
// TODO make this overrideable via the UI
|
|
|
|
// TODO make this overrideable via the UI
|
|
|
|
rootFolderPath = await GetSonarrRootPath(model.ParentRequest.RootFolder ?? int.Parse(s.RootPathAnime), s);
|
|
|
|
rootFolderPath = await GetSonarrRootPath(model.ParentRequest.RootFolder ?? int.Parse(s.RootPathAnime), s);
|
|
|
|
int.TryParse(s.QualityProfileAnime, out qualityToUse);
|
|
|
|
int.TryParse(s.QualityProfileAnime, out qualityToUse);
|
|
|
|
|
|
|
|
seriesType = "anime";
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -136,6 +139,7 @@ namespace Ombi.Core.Senders
|
|
|
|
// For some reason, if we haven't got one use the first root folder in Sonarr
|
|
|
|
// For some reason, if we haven't got one use the first root folder in Sonarr
|
|
|
|
// TODO make this overrideable via the UI
|
|
|
|
// TODO make this overrideable via the UI
|
|
|
|
rootFolderPath = await GetSonarrRootPath(model.ParentRequest.RootFolder ?? int.Parse(s.RootPath), s);
|
|
|
|
rootFolderPath = await GetSonarrRootPath(model.ParentRequest.RootFolder ?? int.Parse(s.RootPath), s);
|
|
|
|
|
|
|
|
seriesType = "standard";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (model.ParentRequest.QualityOverride.HasValue)
|
|
|
|
if (model.ParentRequest.QualityOverride.HasValue)
|
|
|
@ -163,6 +167,7 @@ namespace Ombi.Core.Senders
|
|
|
|
rootFolderPath = rootFolderPath,
|
|
|
|
rootFolderPath = rootFolderPath,
|
|
|
|
qualityProfileId = qualityToUse,
|
|
|
|
qualityProfileId = qualityToUse,
|
|
|
|
titleSlug = model.ParentRequest.Title,
|
|
|
|
titleSlug = model.ParentRequest.Title,
|
|
|
|
|
|
|
|
seriesType = seriesType,
|
|
|
|
addOptions = new AddOptions
|
|
|
|
addOptions = new AddOptions
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ignoreEpisodesWithFiles = true, // There shouldn't be any episodes with files, this is a new season
|
|
|
|
ignoreEpisodesWithFiles = true, // There shouldn't be any episodes with files, this is a new season
|
|
|
|