Merge pull request #2220 from anojht/newsletterenhancement

Added a check for long movie descriptions for newsletter and dealt with it accordingly
pull/2225/head
Jamie 7 years ago committed by GitHub
commit 5e25e16649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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