mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 13:25:13 +02:00
Convert onGrab from passing a string to passing an object with series and episode information
Use object initalizer instead of creation of OnGrab/grabmessage
This commit is contained in:

committed by
Keivan Beigi

parent
d41dd05d00
commit
d3b9ebf86c
@@ -19,11 +19,11 @@ namespace NzbDrone.Core.Notifications.Pushover
|
||||
get { return "https://pushover.net/"; }
|
||||
}
|
||||
|
||||
public override void OnGrab(string message)
|
||||
public override void OnGrab(GrabMessage grabMessage)
|
||||
{
|
||||
const string title = "Episode Grabbed";
|
||||
|
||||
_proxy.SendNotification(title, message, Settings.ApiKey, Settings.UserKey, (PushoverPriority)Settings.Priority, Settings.Sound);
|
||||
_proxy.SendNotification(title, grabMessage.Message, Settings.ApiKey, Settings.UserKey, (PushoverPriority)Settings.Priority, Settings.Sound);
|
||||
}
|
||||
|
||||
public override void OnDownload(DownloadMessage message)
|
||||
|
Reference in New Issue
Block a user