mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +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
@@ -20,10 +20,10 @@ namespace NzbDrone.Core.Notifications.Email
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public override void OnGrab(string message)
|
||||
public override void OnGrab(GrabMessage grabMessage)
|
||||
{
|
||||
const string subject = "Sonarr [TV] - Grabbed";
|
||||
var body = String.Format("{0} sent to queue.", message);
|
||||
var body = String.Format("{0} sent to queue.", grabMessage.Message);
|
||||
|
||||
_emailService.SendEmail(Settings, subject, body);
|
||||
}
|
||||
|
Reference in New Issue
Block a user