mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
Fixed the TV search via Trakt not returning Images anymore. #865
This commit is contained in:
parent
3b18e4c291
commit
aab9194cf5
5 changed files with 50 additions and 7 deletions
|
@ -50,9 +50,9 @@ namespace Ombi.Core.Engine
|
|||
return null;
|
||||
}
|
||||
|
||||
public async Task<SearchTvShowViewModel> GetShowInformation(int tvmazeId)
|
||||
public async Task<SearchTvShowViewModel> GetShowInformation(int tvdbid)
|
||||
{
|
||||
var show = await TvMazeApi.ShowLookup(tvmazeId);
|
||||
var show = await TvMazeApi.ShowLookupByTheTvDbId(tvdbid);
|
||||
var episodes = await TvMazeApi.EpisodeLookup(show.id);
|
||||
|
||||
var mapped = Mapper.Map<SearchTvShowViewModel>(show);
|
||||
|
@ -154,7 +154,7 @@ namespace Ombi.Core.Engine
|
|||
}
|
||||
}
|
||||
|
||||
if (item.Id > 0 && item.Available)
|
||||
if (item.Id > 0)
|
||||
{
|
||||
// TODO need to check if the episodes are available
|
||||
var tvdbid = item.Id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue