1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-03 05:35:29 +00:00

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

This commit is contained in:
Mark McDowall 2024-08-16 22:17:06 -07:00 committed by Mark McDowall
parent 84710a31bd
commit e16ace54a8
2 changed files with 11 additions and 1 deletions

View file

@ -224,6 +224,14 @@ namespace NzbDrone.Core.Notifications.Discord
discordField.Name = "Links"; discordField.Name = "Links";
discordField.Value = GetLinksString(series); discordField.Value = GetLinksString(series);
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())

View file

@ -31,7 +31,9 @@ namespace NzbDrone.Core.Notifications.Discord
Links, Links,
Release, Release,
Poster, Poster,
Fanart Fanart,
CustomFormats,
CustomFormatScore
} }
public enum DiscordManualInteractionFieldType public enum DiscordManualInteractionFieldType