mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
ExternalNotifications enabled (Xbmc only right now).
- Grab, Download, Rename Notification Settings for Xbmc uses definitions.
This commit is contained in:
parent
0ed898b6db
commit
ee4b6c9442
13 changed files with 211 additions and 175 deletions
|
@ -62,9 +62,9 @@ namespace NzbDrone.Core
|
|||
|
||||
_kernel.Get<QualityProvider>().SetupDefaultProfiles();
|
||||
|
||||
BindExternalNotifications();
|
||||
BindIndexers();
|
||||
BindJobs();
|
||||
BindExternalNotifications();
|
||||
}
|
||||
|
||||
private static void BindKernel()
|
||||
|
@ -111,8 +111,9 @@ namespace NzbDrone.Core
|
|||
|
||||
private static void BindExternalNotifications()
|
||||
{
|
||||
_kernel.Bind<ExternalNotificationProviderBase>().To<XbmcNotificationProvider>().InSingletonScope();
|
||||
var notifiers = _kernel.GetAll<ExternalNotificationProviderBase>();
|
||||
_kernel.Bind<ExternalNotificationBase>().To<Xbmc>();
|
||||
|
||||
var notifiers = _kernel.GetAll<ExternalNotificationBase>();
|
||||
_kernel.Get<ExternalNotificationProvider>().InitializeNotifiers(notifiers.ToList());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue