mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed #17000
This commit is contained in:
parent
588f314e9c
commit
874d90d894
4 changed files with 24 additions and 4 deletions
|
@ -19,7 +19,19 @@ namespace Ombi.Core.Rule.Rules.Search
|
|||
|
||||
public async Task<RuleResult> Execute(SearchViewModel obj)
|
||||
{
|
||||
var item = await EmbyContentRepository.Get(obj.ImdbId);
|
||||
EmbyContent item = null;
|
||||
if (obj.Type == RequestType.Movie)
|
||||
{
|
||||
item = await EmbyContentRepository.Get(obj.ImdbId);
|
||||
if (item == null)
|
||||
{
|
||||
item = await EmbyContentRepository.Get(obj.TheMovieDbId);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
item = await EmbyContentRepository.Get(obj.TheTvDbId);
|
||||
}
|
||||
if (item != null)
|
||||
{
|
||||
obj.Available = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue