From 3018057961b2580dcb4f9fbfc9c5a262dcdb1596 Mon Sep 17 00:00:00 2001 From: Jamie Date: Mon, 26 Mar 2018 22:03:40 +0100 Subject: [PATCH] !wip changed the newsletter to include the release year as a year not a full date for movies --- src/Ombi.Schedule/Jobs/Ombi/NewsletterJob.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Ombi.Schedule/Jobs/Ombi/NewsletterJob.cs b/src/Ombi.Schedule/Jobs/Ombi/NewsletterJob.cs index 7c544f3f3..e9ec159e1 100644 --- a/src/Ombi.Schedule/Jobs/Ombi/NewsletterJob.cs +++ b/src/Ombi.Schedule/Jobs/Ombi/NewsletterJob.cs @@ -330,7 +330,8 @@ namespace Ombi.Schedule.Jobs.Ombi TableData(sb); Href(sb, $"https://www.imdb.com/title/{info.ImdbId}/"); - Header(sb, 3, $"{info.Title} {info.ReleaseDate ?? string.Empty}"); + var releaseDate = DateTime.Parse(info.ReleaseDate); + Header(sb, 3, $"{info.Title} ({releaseDate.Year})"); EndTag(sb, "a"); if (info.Genres.Any()) @@ -413,8 +414,8 @@ namespace Ombi.Schedule.Jobs.Ombi sb.Append(""); sb.Append( ""); - - var title = $"{t.Title} {t.ReleaseYear}"; + + var title = $"{t.Title} ({t.ReleaseYear})"; Href(sb, $"https://www.imdb.com/title/{info.externals.imdb}/"); Header(sb, 3, title);