mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
30 lines
866 B
C#
30 lines
866 B
C#
|
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");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|