Got TV working nicely

This commit is contained in:
tidusjar 2021-03-24 20:57:35 +00:00
commit 5e6edc2ad8
17 changed files with 176 additions and 123 deletions

View file

@ -217,7 +217,7 @@ namespace Ombi.Core.Helpers
}
public TvShowRequestBuilderV2 CreateNewRequest(TvRequestViewModelV2 tv)
public TvShowRequestBuilderV2 CreateNewRequest(TvRequestViewModelV2 tv, int rootPathOverride, int qualityOverride)
{
int.TryParse(TheMovieDbRecord.ExternalIds?.TvDbId, out var tvdbId);
NewRequest = new TvRequests
@ -232,7 +232,9 @@ namespace Ombi.Core.Helpers
TvDbId = tvdbId,
ChildRequests = new List<ChildRequests>(),
TotalSeasons = tv.Seasons.Count(),
Background = BackdropPath
Background = BackdropPath,
RootFolder = rootPathOverride,
QualityOverride = qualityOverride
};
NewRequest.ChildRequests.Add(ChildRequest);