diff --git a/src/NzbDrone.Core/Notifications/Discord/Discord.cs b/src/NzbDrone.Core/Notifications/Discord/Discord.cs index c94c6a683..a2c90ff5b 100644 --- a/src/NzbDrone.Core/Notifications/Discord/Discord.cs +++ b/src/NzbDrone.Core/Notifications/Discord/Discord.cs @@ -138,7 +138,7 @@ public override void OnDownload(DownloadMessage message) { embed.Thumbnail = new DiscordImage { - Url = series.Images.FirstOrDefault(x => x.CoverType == MediaCoverTypes.Poster).Url + Url = series.Images.FirstOrDefault(x => x.CoverType == MediaCoverTypes.Poster)?.Url }; } @@ -146,7 +146,7 @@ public override void OnDownload(DownloadMessage message) { embed.Image = new DiscordImage { - Url = series.Images.FirstOrDefault(x => x.CoverType == MediaCoverTypes.Fanart).Url + Url = series.Images.FirstOrDefault(x => x.CoverType == MediaCoverTypes.Fanart)?.Url }; } diff --git a/src/NzbDrone.Core/Notifications/Discord/DiscordSettings.cs b/src/NzbDrone.Core/Notifications/Discord/DiscordSettings.cs index c1df42ec2..48e917b83 100644 --- a/src/NzbDrone.Core/Notifications/Discord/DiscordSettings.cs +++ b/src/NzbDrone.Core/Notifications/Discord/DiscordSettings.cs @@ -19,8 +19,8 @@ public class DiscordSettings : IProviderConfig public DiscordSettings() { //Set Default Fields - GrabFields = new List { 0, 1, 2, 3, 5, 6, 7, 8, 9 }; - ImportFields = new List { 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12 }; + GrabFields = new [] { 0, 1, 2, 3, 5, 6, 7, 8, 9 }; + ImportFields = new [] { 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12 }; } private static readonly DiscordSettingsValidator Validator = new DiscordSettingsValidator();