jellyfin/MediaBrowser.Controller/Library/MetadataConfigurationStore.cs

30 lines
866 B
C#
Raw Normal View History

2014-10-09 15:22:04 -07:00
using MediaBrowser.Common.Configuration;
using MediaBrowser.Model.Configuration;
using System.Collections.Generic;
namespace MediaBrowser.Controller.Library
{
public class MetadataConfigurationStore : IConfigurationFactory
{
public IEnumerable<ConfigurationStore> GetConfigurations()
{
return new List<ConfigurationStore>
{
new ConfigurationStore
{
Key = "metadata",
ConfigurationType = typeof(MetadataConfiguration)
}
};
}
}
public static class MetadataConfigurationExtensions
{
public static MetadataConfiguration GetMetadataConfiguration(this IConfigurationManager config)
{
return config.GetConfiguration<MetadataConfiguration>("metadata");
}
}
}