mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
!wip fixed a bug in the newsletter
This commit is contained in:
parent
2869d1526c
commit
71157052b3
1 changed files with 10 additions and 2 deletions
|
@ -330,8 +330,16 @@ namespace Ombi.Schedule.Jobs.Ombi
|
|||
TableData(sb);
|
||||
|
||||
Href(sb, $"https://www.imdb.com/title/{info.ImdbId}/");
|
||||
var releaseDate = DateTime.Parse(info.ReleaseDate);
|
||||
Header(sb, 3, $"{info.Title} ({releaseDate.Year})");
|
||||
var releaseDate = string.Empty;
|
||||
try
|
||||
{
|
||||
releaseDate = $"({DateTime.Parse(info.ReleaseDate).Year})";
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// Swallow, couldn't parse the date
|
||||
}
|
||||
Header(sb, 3, $"{info.Title} {releaseDate}");
|
||||
EndTag(sb, "a");
|
||||
|
||||
if (info.Genres.Any())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue