Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/8b4c61c065d628fb6a264b79058caf4a4db1868b You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed the bug where we were displaying shows where we do not have enough information to request

pull/1520/head
Jamie.Rees 8 years ago
parent 0e8ebcad61
commit 8b4c61c065

@ -65,7 +65,17 @@ namespace Ombi.Core.Engine
public async Task<SearchTvShowViewModel> GetShowInformation(int tvdbid)
{
var show = await TvMazeApi.ShowLookupByTheTvDbId(tvdbid);
if (show == null)
{
// We don't have enough information
return null;
}
var episodes = await TvMazeApi.EpisodeLookup(show.id);
if (episodes == null || !episodes.Any())
{
// We don't have enough information
return null;
}
var mapped = Mapper.Map<SearchTvShowViewModel>(show);

@ -131,7 +131,14 @@ export class TvSearchComponent implements OnInit, OnDestroy {
this.searchService.getShowInformationTreeNode(val.data.id)
.takeUntil(this.subscriptions)
.subscribe(x => {
this.updateItem(val, x);
if (x.data) {
this.updateItem(val, x);
} else {
const index = this.tvResults.indexOf(val, 0);
if (index > -1) {
this.tvResults.splice(index, 1);
}
}
});
});
}

Loading…
Cancel
Save