From 3d3562dcdaa23ca0a5b6dcb0ea3064da79c57a33 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Fri, 15 Jul 2022 09:55:13 -0500 Subject: [PATCH] New: (Discord) Include Custom Formats & Score On Grab Fixes #6733 --- src/NzbDrone.Core/Notifications/Discord/Discord.cs | 8 ++++++++ .../Notifications/Discord/DiscordFieldType.cs | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Discord/Discord.cs b/src/NzbDrone.Core/Notifications/Discord/Discord.cs index e7f8ef5a0..331e6652c 100644 --- a/src/NzbDrone.Core/Notifications/Discord/Discord.cs +++ b/src/NzbDrone.Core/Notifications/Discord/Discord.cs @@ -98,6 +98,14 @@ namespace NzbDrone.Core.Notifications.Discord discordField.Name = "Links"; discordField.Value = GetLinksString(message.Movie); break; + case DiscordGrabFieldType.CustomFormats: + discordField.Name = "Custom Formats"; + discordField.Value = string.Join("|", message.RemoteMovie.CustomFormats); + break; + case DiscordGrabFieldType.CustomFormatScore: + discordField.Name = "Custom Format Score"; + discordField.Value = message.RemoteMovie.CustomFormatScore.ToString(); + break; } if (discordField.Name.IsNotNullOrWhiteSpace() && discordField.Value.IsNotNullOrWhiteSpace()) diff --git a/src/NzbDrone.Core/Notifications/Discord/DiscordFieldType.cs b/src/NzbDrone.Core/Notifications/Discord/DiscordFieldType.cs index 188a8e820..aa58e178e 100644 --- a/src/NzbDrone.Core/Notifications/Discord/DiscordFieldType.cs +++ b/src/NzbDrone.Core/Notifications/Discord/DiscordFieldType.cs @@ -11,7 +11,9 @@ namespace NzbDrone.Core.Notifications.Discord Links, Release, Poster, - Fanart + Fanart, + CustomFormats, + CustomFormatScore } public enum DiscordImportFieldType