mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-05 13:21:25 -05:00
New: Optionally include Custom Format Score for Discord On File Import notifications
(cherry picked from commit e16ace54a8120cd98007a09fe1e6136be3e699fc) Closes #10313
This commit is contained in:
@@ -229,6 +229,14 @@ namespace NzbDrone.Core.Notifications.Discord
|
||||
discordField.Name = "Tags";
|
||||
discordField.Value = GetTagLabels(message.Movie)?.Join(", ") ?? string.Empty;
|
||||
break;
|
||||
case DiscordImportFieldType.CustomFormats:
|
||||
discordField.Name = "Custom Formats";
|
||||
discordField.Value = string.Join("|", message.MovieInfo.CustomFormats);
|
||||
break;
|
||||
case DiscordImportFieldType.CustomFormatScore:
|
||||
discordField.Name = "Custom Format Score";
|
||||
discordField.Value = message.MovieInfo.CustomFormatScore.ToString();
|
||||
break;
|
||||
}
|
||||
|
||||
if (discordField.Name.IsNotNullOrWhiteSpace() && discordField.Value.IsNotNullOrWhiteSpace())
|
||||
|
||||
@@ -33,7 +33,9 @@ namespace NzbDrone.Core.Notifications.Discord
|
||||
Release,
|
||||
Poster,
|
||||
Fanart,
|
||||
Tags
|
||||
Tags,
|
||||
CustomFormats,
|
||||
CustomFormatScore
|
||||
}
|
||||
|
||||
public enum DiscordManualInteractionFieldType
|
||||
|
||||
Reference in New Issue
Block a user