New: (Discord) Remove size grab field

pull/1964/head
Bogdan 5 months ago
parent 1dabbc94f8
commit 8b7c488173

@ -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())

@ -7,7 +7,6 @@ namespace NzbDrone.Core.Notifications.Discord
DownloadClient,
GrabTrigger,
Source,
Host,
Size
Host
}
}

@ -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
};
}

Loading…
Cancel
Save