Added the ability to override root and quality options in Sonarr (#2049)

Added the ability to override the Root path and Qualities against a TV show for Sonarr
This commit is contained in:
Jamie 2018-03-07 13:58:22 +00:00 committed by GitHub
parent 5f7ce5c175
commit 3fa6940a8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 1165 additions and 59 deletions

View file

@ -177,6 +177,13 @@ namespace Ombi.Core.Engine
var allRequests = TvRepository.Get();
var results = await allRequests.FirstOrDefaultAsync(x => x.Id == request.Id);
results.TvDbId = request.TvDbId;
results.ImdbId = request.ImdbId;
results.Overview = request.Overview;
results.PosterPath = PosterPathHelper.FixPosterPath(request.PosterPath);
results.QualityOverride = request.QualityOverride;
results.RootFolder = request.RootFolder;
await TvRepository.Update(results);
return results;
}