mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Tweaks to XML and thumbs #ND-21
This commit is contained in:
parent
b122f1135e
commit
2e9cf66b57
3 changed files with 70 additions and 9 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()
|
||||
|
@ -160,6 +163,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