From 8b7c488173679ea49e42bff9c2939fba7238bab6 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 25 Dec 2023 13:16:00 +0200 Subject: [PATCH] New: (Discord) Remove size grab field --- src/NzbDrone.Core/Notifications/Discord/Discord.cs | 5 ----- src/NzbDrone.Core/Notifications/Discord/DiscordFieldType.cs | 3 +-- src/NzbDrone.Core/Notifications/Discord/DiscordSettings.cs | 3 +-- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Discord/Discord.cs b/src/NzbDrone.Core/Notifications/Discord/Discord.cs index 0e442d8ec..9eb41e989 100644 --- a/src/NzbDrone.Core/Notifications/Discord/Discord.cs +++ b/src/NzbDrone.Core/Notifications/Discord/Discord.cs @@ -65,11 +65,6 @@ namespace NzbDrone.Core.Notifications.Discord discordField.Name = "Host"; discordField.Value = message.Host ?? string.Empty; break; - case DiscordGrabFieldType.Size: - discordField.Name = "Size"; - discordField.Value = BytesToString(message.Release.Size.GetValueOrDefault(0)); - discordField.Inline = true; - 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 b84f633e2..bfce31544 100644 --- a/src/NzbDrone.Core/Notifications/Discord/DiscordFieldType.cs +++ b/src/NzbDrone.Core/Notifications/Discord/DiscordFieldType.cs @@ -7,7 +7,6 @@ namespace NzbDrone.Core.Notifications.Discord DownloadClient, GrabTrigger, Source, - Host, - Size + Host } } diff --git a/src/NzbDrone.Core/Notifications/Discord/DiscordSettings.cs b/src/NzbDrone.Core/Notifications/Discord/DiscordSettings.cs index 106c4b95a..c571b4fb5 100644 --- a/src/NzbDrone.Core/Notifications/Discord/DiscordSettings.cs +++ b/src/NzbDrone.Core/Notifications/Discord/DiscordSettings.cs @@ -26,8 +26,7 @@ namespace NzbDrone.Core.Notifications.Discord (int)DiscordGrabFieldType.DownloadClient, (int)DiscordGrabFieldType.GrabTrigger, (int)DiscordGrabFieldType.Source, - (int)DiscordGrabFieldType.Host, - (int)DiscordGrabFieldType.Size + (int)DiscordGrabFieldType.Host }; }