mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed #940 don't show any shows without a tvdb id
Added a link to the netflix movie when you click the label
This commit is contained in:
parent
809d0103c3
commit
e5d7c4c3ec
3 changed files with 7 additions and 2 deletions
|
@ -246,6 +246,7 @@ namespace Ombi.UI.Modules
|
|||
if (counter <= 5) // Let's only do it for the first 5 items
|
||||
{
|
||||
var movieInfoTask = await MovieApi.GetMovieInformation(movie.Id).ConfigureAwait(false);
|
||||
|
||||
// TODO needs to be careful about this, it's adding extra time to search...
|
||||
// https://www.themoviedb.org/talk/5807f4cdc3a36812160041f2
|
||||
imdbId = movieInfoTask?.ImdbId;
|
||||
|
@ -345,6 +346,10 @@ namespace Ombi.UI.Modules
|
|||
var viewTv = new List<SearchTvShowViewModel>();
|
||||
foreach (var t in apiTv)
|
||||
{
|
||||
if (!(t.show.externals?.thetvdb.HasValue) ?? false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
var banner = t.show.image?.medium;
|
||||
if (!string.IsNullOrEmpty(banner))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue