New: Optionally include Custom Format Score for Discord On File Import notifications

(cherry picked from commit e16ace54a8120cd98007a09fe1e6136be3e699fc)
pull/5020/head
Mark McDowall 3 months ago committed by servarr
parent b514de2840
commit 6fa98c5404

@ -206,6 +206,14 @@ namespace NzbDrone.Core.Notifications.Discord
discordField.Name = "Links"; discordField.Name = "Links";
discordField.Value = GetLinksString(artist); discordField.Value = GetLinksString(artist);
break; break;
case DiscordImportFieldType.CustomFormats:
discordField.Name = "Custom Formats";
discordField.Value = string.Join("|", message.EpisodeInfo.CustomFormats);
break;
case DiscordImportFieldType.CustomFormatScore:
discordField.Name = "Custom Format Score";
discordField.Value = message.EpisodeInfo.CustomFormatScore.ToString();
break;
} }
if (discordField.Name.IsNotNullOrWhiteSpace() && discordField.Value.IsNotNullOrWhiteSpace()) if (discordField.Name.IsNotNullOrWhiteSpace() && discordField.Value.IsNotNullOrWhiteSpace())

@ -28,6 +28,8 @@ namespace NzbDrone.Core.Notifications.Discord
Links, Links,
Release, Release,
Poster, Poster,
Fanart Fanart,
CustomFormats,
CustomFormatScore
} }
} }

Loading…
Cancel
Save