Added a check for long movie descriptions and dealt with accordingly

pull/2220/head
Anojh 6 years ago
parent 37a5759a32
commit 4b034b5577

@ -451,7 +451,14 @@ namespace Ombi.Schedule.Jobs.Ombi
}
AddTitle(sb, $"https://www.imdb.com/title/{info.ImdbId}/", $"{info.Title} {releaseDate}");
AddParagraph(sb, info.Overview);
var summary = info.Overview;
if (summary.Length > 280)
{
summary = summary.Remove(280);
summary = summary + "...</p>";
}
AddParagraph(sb, summary);
if (info.Genres.Any())
{

Loading…
Cancel
Save