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