1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 03:52:33 +02:00

New: Add indexer option for Discord on grab notifications

Fixes #8242

Co-Authored-By: lodu <48859312+lodu@users.noreply.github.com>
This commit is contained in:
Qstick 2023-03-29 19:01:11 -05:00
parent ac26bcddd9
commit d35c6683e9
2 changed files with 6 additions and 1 deletions

View File

@ -107,6 +107,10 @@ public override void OnGrab(GrabMessage message)
discordField.Name = "Custom Format Score";
discordField.Value = message.RemoteMovie.CustomFormatScore.ToString();
break;
case DiscordGrabFieldType.Indexer:
discordField.Name = "Indexer";
discordField.Value = message.RemoteMovie.Release.Indexer;
break;
}
if (discordField.Name.IsNotNullOrWhiteSpace() && discordField.Value.IsNotNullOrWhiteSpace())

View File

@ -13,7 +13,8 @@ public enum DiscordGrabFieldType
Poster,
Fanart,
CustomFormats,
CustomFormatScore
CustomFormatScore,
Indexer
}
public enum DiscordImportFieldType