jellyfin/MediaBrowser.Controller/Library/MetadataConfigurationStore.cs

30 lines
859 B
C#
Raw Normal View History

using System.Collections.Generic;
using MediaBrowser.Common.Configuration;
2018-12-27 16:27:57 -07:00
using MediaBrowser.Model.Configuration;
namespace MediaBrowser.Controller.Library
{
public class MetadataConfigurationStore : IConfigurationFactory
{
public IEnumerable<ConfigurationStore> GetConfigurations()
{
return new ConfigurationStore[]
{
new ConfigurationStore
{
Key = "metadata",
ConfigurationType = typeof(MetadataConfiguration)
}
};
}
}
public static class MetadataConfigurationExtensions
{
public static MetadataConfiguration GetMetadataConfiguration(this IConfigurationManager config)
{
return config.GetConfiguration<MetadataConfiguration>("metadata");
}
}
}