From 5d09b84b05ab70662830e910c8f5e98af7830d45 Mon Sep 17 00:00:00 2001 From: lodu <48859312+lodu@users.noreply.github.com> Date: Wed, 22 Mar 2023 00:58:47 +0100 Subject: [PATCH] New: Add indexer option for Discord on grab notifications --- src/NzbDrone.Core/Notifications/Discord/Discord.cs | 4 ++++ src/NzbDrone.Core/Notifications/Discord/DiscordFieldType.cs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Discord/Discord.cs b/src/NzbDrone.Core/Notifications/Discord/Discord.cs index 0cc6aba08..00e20e71c 100644 --- a/src/NzbDrone.Core/Notifications/Discord/Discord.cs +++ b/src/NzbDrone.Core/Notifications/Discord/Discord.cs @@ -101,6 +101,10 @@ namespace NzbDrone.Core.Notifications.Discord discordField.Name = "Links"; discordField.Value = GetLinksString(series); break; + case DiscordGrabFieldType.Indexer: + discordField.Name = "Indexer"; + discordField.Value = message.Episode.Release.Indexer; + 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..ed67fe4ef 100644 --- a/src/NzbDrone.Core/Notifications/Discord/DiscordFieldType.cs +++ b/src/NzbDrone.Core/Notifications/Discord/DiscordFieldType.cs @@ -11,7 +11,8 @@ namespace NzbDrone.Core.Notifications.Discord Links, Release, Poster, - Fanart + Fanart, + Indexer } public enum DiscordImportFieldType