mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			866 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			866 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using MediaBrowser.Controller.Entities;
 | 
						|
 | 
						|
namespace MediaBrowser.Controller.Collections
 | 
						|
{
 | 
						|
    public class ManualCollectionsFolder : BasePluginFolder, IHiddenFromDisplay
 | 
						|
    {
 | 
						|
        public ManualCollectionsFolder()
 | 
						|
        {
 | 
						|
            Name = "Collections";
 | 
						|
            DisplayMediaType = "CollectionFolder";
 | 
						|
        }
 | 
						|
 | 
						|
        public override bool IsHidden
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                return true;
 | 
						|
            }
 | 
						|
        }
 | 
						|
 | 
						|
        public bool IsHiddenFromUser(User user)
 | 
						|
        {
 | 
						|
            return !ConfigurationManager.Configuration.DisplayCollectionsView;
 | 
						|
        }
 | 
						|
 | 
						|
        public override string CollectionType
 | 
						|
        {
 | 
						|
            get { return Model.Entities.CollectionType.BoxSets; }
 | 
						|
        }
 | 
						|
 | 
						|
        public override string GetClientTypeName()
 | 
						|
        {
 | 
						|
            return typeof(CollectionFolder).Name;
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |