pull/332/head
tidusjar 9 years ago
parent ae4d51de9b
commit 1d3520ce93

@ -299,11 +299,15 @@ namespace PlexRequests.UI.Modules
var viewTv = new List<SearchTvShowViewModel>(); var viewTv = new List<SearchTvShowViewModel>();
foreach (var t in apiTv) foreach (var t in apiTv)
{ {
var banner = t.show.image?.medium;
if (!string.IsNullOrEmpty(banner))
{
banner = banner.Replace("http", "https");
}
var viewT = new SearchTvShowViewModel var viewT = new SearchTvShowViewModel
{ {
// We are constructing the banner with the id: Banner = banner,
// http://thetvdb.com/banners/_cache/posters/ID-1.jpg
Banner = t.show.image?.medium,
FirstAired = t.show.premiered, FirstAired = t.show.premiered,
Id = t.show.externals?.thetvdb ?? 0, Id = t.show.externals?.thetvdb ?? 0,
ImdbId = t.show.externals?.imdb, ImdbId = t.show.externals?.imdb,

Loading…
Cancel
Save