Added a check for long movie descriptions and dealt with accordingly

This commit is contained in:
Anojh 2018-05-01 14:19:08 -07:00
parent 37a5759a32
commit 4b034b5577

View file

@ -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())
{