mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 12:32:31 +01: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:
parent
ac26bcddd9
commit
d35c6683e9
@ -107,6 +107,10 @@ public override void OnGrab(GrabMessage message)
|
|||||||
discordField.Name = "Custom Format Score";
|
discordField.Name = "Custom Format Score";
|
||||||
discordField.Value = message.RemoteMovie.CustomFormatScore.ToString();
|
discordField.Value = message.RemoteMovie.CustomFormatScore.ToString();
|
||||||
break;
|
break;
|
||||||
|
case DiscordGrabFieldType.Indexer:
|
||||||
|
discordField.Name = "Indexer";
|
||||||
|
discordField.Value = message.RemoteMovie.Release.Indexer;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (discordField.Name.IsNotNullOrWhiteSpace() && discordField.Value.IsNotNullOrWhiteSpace())
|
if (discordField.Name.IsNotNullOrWhiteSpace() && discordField.Value.IsNotNullOrWhiteSpace())
|
||||||
|
@ -13,7 +13,8 @@ public enum DiscordGrabFieldType
|
|||||||
Poster,
|
Poster,
|
||||||
Fanart,
|
Fanart,
|
||||||
CustomFormats,
|
CustomFormats,
|
||||||
CustomFormatScore
|
CustomFormatScore,
|
||||||
|
Indexer
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum DiscordImportFieldType
|
public enum DiscordImportFieldType
|
||||||
|
Loading…
Reference in New Issue
Block a user