mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 16:22:55 -07:00
This commit is contained in:
parent
385d206287
commit
3cc45b3022
30 changed files with 317 additions and 126 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue