mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Initial attempt at getting anime seriestype working
This commit is contained in:
parent
d8972cfa2a
commit
c1eb1e2738
4 changed files with 20 additions and 2 deletions
15
cake.config
15
cake.config
|
@ -1,2 +1,15 @@
|
||||||
|
; This is the default configuration file for Cake.
|
||||||
|
; This file was downloaded from https://github.com/cake-build/resources
|
||||||
|
|
||||||
|
[Nuget]
|
||||||
|
Source=https://api.nuget.org/v3/index.json
|
||||||
|
UseInProcessClient=true
|
||||||
|
LoadDependencies=false
|
||||||
|
|
||||||
|
[Paths]
|
||||||
|
Tools=./tools
|
||||||
|
Addins=./tools/Addins
|
||||||
|
Modules=./tools/Modules
|
||||||
|
|
||||||
[Settings]
|
[Settings]
|
||||||
SkipVerification=true
|
SkipVerification=false
|
||||||
|
|
|
@ -23,6 +23,7 @@ namespace Ombi.Api.Sonarr.Models
|
||||||
public string cleanTitle { get; set; }
|
public string cleanTitle { get; set; }
|
||||||
public string imdbId { get; set; }
|
public string imdbId { get; set; }
|
||||||
public string titleSlug { get; set; }
|
public string titleSlug { get; set; }
|
||||||
|
public string seriesType { get; set; }
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
public List<SonarrImage> images { get; set; }
|
public List<SonarrImage> images { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -9,7 +9,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
..\appveyor.yml = ..\appveyor.yml
|
..\appveyor.yml = ..\appveyor.yml
|
||||||
..\build.cake = ..\build.cake
|
..\build.cake = ..\build.cake
|
||||||
..\cake.config = ..\cake.config
|
|
||||||
..\CHANGELOG.md = ..\CHANGELOG.md
|
..\CHANGELOG.md = ..\CHANGELOG.md
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue