2019-01-13 13:03:10 -07:00
|
|
|
using System.Collections.Generic;
|
2019-01-13 12:26:56 -07:00
|
|
|
using MediaBrowser.Common.Configuration;
|
2014-06-29 20:04:50 -07: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");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|