mirror of
https://github.com/Sonarr/Sonarr
synced 2026-01-14 11:31:34 +01:00
New: Add indexer option for Discord on grab notifications
This commit is contained in:
parent
3d24e412a6
commit
5d09b84b05
2 changed files with 6 additions and 1 deletions
|
|
@ -101,6 +101,10 @@ public override void OnGrab(GrabMessage message)
|
|||
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())
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ public enum DiscordGrabFieldType
|
|||
Links,
|
||||
Release,
|
||||
Poster,
|
||||
Fanart
|
||||
Fanart,
|
||||
Indexer
|
||||
}
|
||||
|
||||
public enum DiscordImportFieldType
|
||||
|
|
|
|||
Loading…
Reference in a new issue