mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
New: Telegram Notification - Add Upgrade Movie Support
This commit is contained in:
parent
db14ac4605
commit
a31ca4e80b
@ -12,6 +12,7 @@ public abstract class NotificationBase<TSettings> : INotification
|
|||||||
{
|
{
|
||||||
protected const string MOVIE_GRABBED_TITLE = "Movie Grabbed";
|
protected const string MOVIE_GRABBED_TITLE = "Movie Grabbed";
|
||||||
protected const string MOVIE_DOWNLOADED_TITLE = "Movie Downloaded";
|
protected const string MOVIE_DOWNLOADED_TITLE = "Movie Downloaded";
|
||||||
|
protected const string MOVIE_UPGRADED_TITLE = "Movie Upgraded";
|
||||||
protected const string MOVIE_DELETED_TITLE = "Movie Deleted";
|
protected const string MOVIE_DELETED_TITLE = "Movie Deleted";
|
||||||
protected const string MOVIE_FILE_DELETED_TITLE = "Movie File Deleted";
|
protected const string MOVIE_FILE_DELETED_TITLE = "Movie File Deleted";
|
||||||
protected const string HEALTH_ISSUE_TITLE = "Health Check Failure";
|
protected const string HEALTH_ISSUE_TITLE = "Health Check Failure";
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using FluentValidation.Results;
|
using FluentValidation.Results;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
|
|
||||||
@ -23,7 +24,14 @@ public override void OnGrab(GrabMessage grabMessage)
|
|||||||
|
|
||||||
public override void OnDownload(DownloadMessage message)
|
public override void OnDownload(DownloadMessage message)
|
||||||
{
|
{
|
||||||
_proxy.SendNotification(MOVIE_DOWNLOADED_TITLE, message.Message, Settings);
|
if (message.OldMovieFiles.Any())
|
||||||
|
{
|
||||||
|
_proxy.SendNotification(MOVIE_UPGRADED_TITLE, message.Message, Settings);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_proxy.SendNotification(MOVIE_DOWNLOADED_TITLE, message.Message, Settings);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnMovieFileDelete(MovieFileDeleteMessage deleteMessage)
|
public override void OnMovieFileDelete(MovieFileDeleteMessage deleteMessage)
|
||||||
|
Loading…
Reference in New Issue
Block a user