New: Add indexer option for Discord on grab notifications

This commit is contained in:
lodu 2023-03-22 00:58:47 +01:00 committed by GitHub
parent 3d24e412a6
commit 5d09b84b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

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

View File

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