mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 22:07:32 -04:00
New: (Discord) Remove size grab field
This commit is contained in:
parent
1dabbc94f8
commit
8b7c488173
3 changed files with 2 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue