New: Add indexer option for Discord on grab notifications

(cherry picked from commit 5d09b84b05ab70662830e910c8f5e98af7830d45)
This commit is contained in:
lodu 2023-03-22 00:58:47 +01:00 committed by Bogdan
commit dc5a5240be
2 changed files with 6 additions and 1 deletions

View file

@ -101,6 +101,10 @@ namespace NzbDrone.Core.Notifications.Discord
discordField.Name = "Links"; discordField.Name = "Links";
discordField.Value = GetLinksString(artist); discordField.Value = GetLinksString(artist);
break; break;
case DiscordGrabFieldType.Indexer:
discordField.Name = "Indexer";
discordField.Value = message.RemoteAlbum.Release.Indexer;
break;
} }
if (discordField.Name.IsNotNullOrWhiteSpace() && discordField.Value.IsNotNullOrWhiteSpace()) if (discordField.Name.IsNotNullOrWhiteSpace() && discordField.Value.IsNotNullOrWhiteSpace())

View file

@ -11,7 +11,8 @@ namespace NzbDrone.Core.Notifications.Discord
Links, Links,
Release, Release,
Poster, Poster,
Fanart Fanart,
Indexer
} }
public enum DiscordImportFieldType public enum DiscordImportFieldType