mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 16:52:56 -07:00
Added a check for long movie descriptions and dealt with accordingly
This commit is contained in:
parent
37a5759a32
commit
4b034b5577
1 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue