mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-27 18:53:27 +01:00
Merge 6fa98c5404 into d8f79c0189
This commit is contained in:
commit
b1a18055eb
2 changed files with 11 additions and 1 deletions
|
|
@ -209,6 +209,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