2020-08-22 19:56:24 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:01:16 +00:00
|
|
|
using System.Collections.Generic;
|
2019-01-13 19:25:32 +00:00
|
|
|
using MediaBrowser.Common.Configuration;
|
2018-12-27 23:27:57 +00: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");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|