mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 23:45:46 +02:00
Merge remote-tracking branch 'origin/metadata'
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user