1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-21 23:32:27 +00:00

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

(cherry picked from commit e16ace54a8120cd98007a09fe1e6136be3e699fc)
This commit is contained in:
Mark McDowall 2024-08-16 22:17:06 -07:00 committed by servarr
parent b514de2840
commit 6fa98c5404
2 changed files with 11 additions and 1 deletions

View file

@ -206,6 +206,14 @@ public override void OnReleaseImport(AlbumDownloadMessage message)
discordField.Name = "Links";
discordField.Value = GetLinksString(artist);
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())

View file

@ -28,6 +28,8 @@ public enum DiscordImportFieldType
Links,
Release,
Poster,
Fanart
Fanart,
CustomFormats,
CustomFormatScore
}
}