mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 19:08:53 -07:00
32 lines
891 B
C#
32 lines
891 B
C#
#pragma warning disable CS1591
|
|
|
|
using System.Collections.Generic;
|
|
using MediaBrowser.Common.Configuration;
|
|
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");
|
|
}
|
|
}
|
|
}
|