mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			882 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			882 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using MediaBrowser.Common.Configuration;
 | 
						|
using MediaBrowser.Model.FileOrganization;
 | 
						|
using System.Collections.Generic;
 | 
						|
 | 
						|
namespace MediaBrowser.Server.Implementations.FileOrganization
 | 
						|
{
 | 
						|
    public static class ConfigurationExtension
 | 
						|
    {
 | 
						|
        public static AutoOrganizeOptions GetAutoOrganizeOptions(this IConfigurationManager manager)
 | 
						|
        {
 | 
						|
            return manager.GetConfiguration<AutoOrganizeOptions>("autoorganize");
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    public class AutoOrganizeOptionsFactory : IConfigurationFactory
 | 
						|
    {
 | 
						|
        public IEnumerable<ConfigurationStore> GetConfigurations()
 | 
						|
        {
 | 
						|
            return new List<ConfigurationStore>
 | 
						|
            {
 | 
						|
                new ConfigurationStore
 | 
						|
                {
 | 
						|
                    Key = "autoorganize",
 | 
						|
                    ConfigurationType = typeof (AutoOrganizeOptions)
 | 
						|
                }
 | 
						|
            };
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |