You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using NzbDrone.Core.Tv;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Notifications.Plex
|
|
|
|
|
{
|
|
|
|
|
public class PlexClient : NotificationBase<PlexClientSettings>
|
|
|
|
|
{
|
|
|
|
|
private readonly IPlexService _plexProvider;
|
|
|
|
|
|
|
|
|
|
public PlexClient(IPlexService plexProvider)
|
|
|
|
|
{
|
|
|
|
|
_plexProvider = plexProvider;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "Plex Client"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ImplementationName
|
|
|
|
|
{
|
|
|
|
|
get { return "Plex Client"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Link
|
|
|
|
|
{
|
|
|
|
|
get { return "http://www.plexapp.com/"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void OnGrab(string message)
|
|
|
|
|
{
|
|
|
|
|
const string header = "NzbDrone [TV] - Grabbed";
|
|
|
|
|
_plexProvider.Notify(Settings, header, message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void OnDownload(string message, Series series)
|
|
|
|
|
{
|
|
|
|
|
const string header = "NzbDrone [TV] - Downloaded";
|
|
|
|
|
_plexProvider.Notify(Settings, header, message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void AfterRename(Series series)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|