mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 19:40:05 -07:00
Fixed #210
This commit is contained in:
parent
ae4d51de9b
commit
1d3520ce93
1 changed files with 7 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue