This commit is contained in:
tidusjar 2017-11-03 21:04:52 +00:00
parent a2750a7c20
commit 55550f1b30
3 changed files with 12 additions and 9 deletions

View file

@ -159,15 +159,10 @@ namespace Ombi.Core.Engine
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.TheMovieDbId = viewMovie.TheMovieDbId;
viewMovie.TheMovieDbId = viewMovie.Id.ToString();
await RunSearchRules(viewMovie);
viewMovie.Id = oldId;
return viewMovie;
}