mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 08:16:05 -07:00
Smal changes to the api
This commit is contained in:
parent
9f1475abb6
commit
98e99251f3
8 changed files with 46 additions and 12 deletions
|
@ -43,16 +43,16 @@ namespace Ombi.Core.Engine
|
|||
/// </summary>
|
||||
/// <param name="model">The model.</param>
|
||||
/// <returns></returns>
|
||||
public async Task<RequestEngineResult> RequestMovie(SearchMovieViewModel model)
|
||||
public async Task<RequestEngineResult> RequestMovie(MovieRequestViewModel model)
|
||||
{
|
||||
var movieInfo = await MovieApi.GetMovieInformation(model.Id);
|
||||
var movieInfo = await MovieApi.GetMovieInformation(model.TheMovieDbId);
|
||||
if (movieInfo == null || movieInfo.Id == 0)
|
||||
{
|
||||
return new RequestEngineResult
|
||||
{
|
||||
Result = false,
|
||||
Message = "There was an issue adding this movie!",
|
||||
ErrorMessage = $"TheMovieDb didn't have any information for ID {model.Id}"
|
||||
ErrorMessage = $"TheMovieDb didn't have any information for ID {model.TheMovieDbId}"
|
||||
};
|
||||
}
|
||||
var fullMovieName =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue