mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 16:52:56 -07:00
Fixed #1663
This commit is contained in:
parent
a2750a7c20
commit
55550f1b30
3 changed files with 12 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,15 @@ namespace Ombi.Controllers
|
|||
});
|
||||
|
||||
var images = await Api.GetTvImages(tvdbid, key.Value);
|
||||
return images.tvbanner.FirstOrDefault()?.url ?? string.Empty;
|
||||
if (images.tvbanner != null)
|
||||
{
|
||||
return images.tvbanner.FirstOrDefault()?.url ?? string.Empty;
|
||||
}
|
||||
if (images.showbackground != null)
|
||||
{
|
||||
return images.showbackground.FirstOrDefault()?.url ?? string.Empty;
|
||||
}
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
[HttpGet("background")]
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"UseHttps": false
|
||||
},
|
||||
"TokenAuthentication": {
|
||||
"SecretKey": "secretkey_secretkey123!"
|
||||
"SecretKey": "secretkey_secretkey1234!"
|
||||
},
|
||||
"LandingPageBackground": {
|
||||
"Movies": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue