2019-01-13 20:03:10 +00:00
|
|
|
using System.Collections.Generic;
|
2019-01-13 19:26:56 +00:00
|
|
|
using MediaBrowser.Common.Configuration;
|
2014-06-30 03:04:50 +00:00
|
|
|
using MediaBrowser.Model.Configuration;
|
|
|
|
|
|
|
|
namespace MediaBrowser.XbmcMetadata.Configuration
|
|
|
|
{
|
|
|
|
public class ConfigurationFactory : IConfigurationFactory
|
|
|
|
{
|
|
|
|
public IEnumerable<ConfigurationStore> GetConfigurations()
|
|
|
|
{
|
|
|
|
return new[]
|
|
|
|
{
|
|
|
|
new ConfigurationStore
|
|
|
|
{
|
|
|
|
ConfigurationType = typeof(XbmcMetadataOptions),
|
|
|
|
Key = "xbmcmetadata"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class ConfigurationExtension
|
|
|
|
{
|
|
|
|
public static XbmcMetadataOptions GetNfoConfiguration(this IConfigurationManager manager)
|
|
|
|
{
|
|
|
|
return manager.GetConfiguration<XbmcMetadataOptions>("xbmcmetadata");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|