mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Merge remote-tracking branch 'origin/metadata'
This commit is contained in:
commit
7c803c4691
43 changed files with 1348 additions and 91 deletions
|
@ -13,6 +13,7 @@ using NzbDrone.Core.Providers;
|
|||
using NzbDrone.Core.Providers.Core;
|
||||
using NzbDrone.Core.Providers.ExternalNotification;
|
||||
using NzbDrone.Core.Providers.Indexer;
|
||||
using NzbDrone.Core.Providers.Metadata;
|
||||
using NzbDrone.Core.Repository;
|
||||
using PetaPoco;
|
||||
using SignalR;
|
||||
|
@ -20,6 +21,7 @@ using SignalR.Hosting.AspNet;
|
|||
using SignalR.Infrastructure;
|
||||
using SignalR.Ninject;
|
||||
using Connection = NzbDrone.Core.Datastore.Connection;
|
||||
using Xbmc = NzbDrone.Core.Providers.ExternalNotification.Xbmc;
|
||||
|
||||
namespace NzbDrone.Core
|
||||
{
|
||||
|
@ -45,8 +47,9 @@ namespace NzbDrone.Core
|
|||
|
||||
InitQuality();
|
||||
InitExternalNotifications();
|
||||
InitMetadataProviders();
|
||||
InitIndexers();
|
||||
InitJobs();
|
||||
InitJobs();
|
||||
}
|
||||
|
||||
private void InitDatabase()
|
||||
|
@ -161,6 +164,16 @@ namespace NzbDrone.Core
|
|||
Kernel.Get<ExternalNotificationProvider>().InitializeNotifiers(notifiers.ToList());
|
||||
}
|
||||
|
||||
private void InitMetadataProviders()
|
||||
{
|
||||
logger.Debug("Initializing Metadata Providers...");
|
||||
|
||||
Kernel.Bind<MetadataBase>().To<Providers.Metadata.Xbmc>().InSingletonScope();
|
||||
|
||||
var providers = Kernel.GetAll<MetadataBase>();
|
||||
Kernel.Get<MetadataProvider>().Initialize(providers.ToList());
|
||||
}
|
||||
|
||||
public void DedicateToHost()
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue