Improvements to the UI and also finished the availability checker #865 #1464

This commit is contained in:
Jamie.Rees 2017-08-25 14:06:47 +01:00
parent 385d206287
commit 3cc45b3022
30 changed files with 317 additions and 126 deletions

View file

@ -148,10 +148,18 @@ namespace Ombi.Core.Engine
{
var showInfo = await MovieApi.GetMovieInformation(viewMovie.Id);
viewMovie.Id = showInfo.Id; // TheMovieDbId
viewMovie.ImdbId = showInfo.ImdbId;
}
// So when we run the rule to check if it's available in Plex we need the ImdbId
// But we only pass down the SearchViewModel that doesn't contain this
// So set the ImdbId to viewMovie.Id and then set it back afterwards
var oldId = viewMovie.Id;
viewMovie.CustomId = viewMovie.ImdbId ?? string.Empty;
await RunSearchRules(viewMovie);
viewMovie.Id = oldId;
return viewMovie;
}