From c0e6030ba35c71799509983cffd005a0f5f7fe4c Mon Sep 17 00:00:00 2001
From: tidusjar
Date: Mon, 10 Oct 2016 21:36:29 +0100
Subject: [PATCH] FIXED!!!!! YES BITCH! #550
---
PlexRequests.Services/Jobs/RecentlyAdded.cs | 7 ++++++-
PlexRequests.UI/Modules/BaseAuthModule.cs | 9 ++++++---
PlexRequests.UI/Modules/UserLoginModule.cs | 4 ++--
3 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/PlexRequests.Services/Jobs/RecentlyAdded.cs b/PlexRequests.Services/Jobs/RecentlyAdded.cs
index f6b47aab8..3a744bb6b 100644
--- a/PlexRequests.Services/Jobs/RecentlyAdded.cs
+++ b/PlexRequests.Services/Jobs/RecentlyAdded.cs
@@ -147,7 +147,12 @@ namespace PlexRequests.Services.Jobs
sb.AppendFormat("{1} {2}
",
info.ImdbId, info.Title, info.ReleaseDate?.ToString("yyyy") ?? string.Empty);
- sb.AppendFormat("Genre: {0}
", string.Join(", ", info.Genres.Select(x => x.Name.ToString()).ToArray()));
+ if (info.Genres.Any())
+ {
+ sb.AppendFormat(
+ "Genre: {0}
",
+ string.Join(", ", info.Genres.Select(x => x.Name.ToString()).ToArray()));
+ }
sb.AppendFormat("{0}
", info.Overview);
sb.Append(" |