mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Implemented OnMovieAdded for Discord
This commit is contained in:
parent
030744ab7b
commit
1e3a42bf42
@ -222,6 +222,21 @@ public override void OnDownload(DownloadMessage message)
|
|||||||
_proxy.SendPayload(payload, Settings);
|
_proxy.SendPayload(payload, Settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void OnMovieAdded(Movie movie)
|
||||||
|
{
|
||||||
|
var attachments = new List<Embed>
|
||||||
|
{
|
||||||
|
new Embed
|
||||||
|
{
|
||||||
|
Title = movie.MovieMetadata.Value.Title,
|
||||||
|
Description = $"{movie.Title} added to library",
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var payload = CreatePayload("Added", attachments);
|
||||||
|
_proxy.SendPayload(payload, Settings);
|
||||||
|
}
|
||||||
|
|
||||||
public override void OnMovieRename(Movie movie, List<RenamedMovieFile> renamedFiles)
|
public override void OnMovieRename(Movie movie, List<RenamedMovieFile> renamedFiles)
|
||||||
{
|
{
|
||||||
var attachments = new List<Embed>();
|
var attachments = new List<Embed>();
|
||||||
|
Loading…
Reference in New Issue
Block a user