public static string GetShowImagesHtmlOverview(this ShowItem si) { SeriesInfo ser = si.TheSeries(); string body = $"<h1><A HREF=\"{TheTVDB.Instance.WebsiteUrl(si.TvdbCode, -1, true)}\">{si.ShowName}</A> </h1>"; body += ImageSection("Show Banner", 758, 140, ser.GetSeriesWideBannerPath()); body += ImageSection("Show Poster", 350, 500, ser.GetSeriesPosterPath()); body += ImageSection("Show Fanart", 960, 540, ser.GetSeriesFanartPath()); return(body); }
public static string GetShowImagesHtmlOverview([NotNull] this ShowItem si) { string body = $"<h1><A HREF=\"{TheTVDB.API.WebsiteShowUrl(si)}\">{si.ShowName}</A> </h1>"; SeriesInfo ser = si.TheSeries(); if (ser is null) { return(body); } body += ImageSection("Show Banner", 758, 140, ser.GetSeriesWideBannerPath()); body += ImageSection("Show Poster", 350, 500, ser.GetSeriesPosterPath()); body += ImageSection("Show Fanart", 960, 540, ser.GetSeriesFanartPath()); return(body); }