From 4b034b5577bad4317e270f2b4b0971abbab905ab Mon Sep 17 00:00:00 2001 From: Anojh Date: Tue, 1 May 2018 14:19:08 -0700 Subject: [PATCH] Added a check for long movie descriptions and dealt with accordingly --- src/Ombi.Schedule/Jobs/Ombi/NewsletterJob.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Ombi.Schedule/Jobs/Ombi/NewsletterJob.cs b/src/Ombi.Schedule/Jobs/Ombi/NewsletterJob.cs index 20f5a3619..7a46acea1 100644 --- a/src/Ombi.Schedule/Jobs/Ombi/NewsletterJob.cs +++ b/src/Ombi.Schedule/Jobs/Ombi/NewsletterJob.cs @@ -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 + "...

"; + } + AddParagraph(sb, summary); if (info.Genres.Any()) {