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:
parent
b514de2840
commit
6fa98c5404
2 changed files with 11 additions and 1 deletions
|
@ -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())
|
||||
|
|
|
@ -28,6 +28,8 @@ public enum DiscordImportFieldType
|
|||
Links,
|
||||
Release,
|
||||
Poster,
|
||||
Fanart
|
||||
Fanart,
|
||||
CustomFormats,
|
||||
CustomFormatScore
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue