mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
		
			1017 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1017 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using MediaBrowser.Controller.Entities;
 | 
						|
using System.Linq;
 | 
						|
 | 
						|
namespace MediaBrowser.Server.Implementations.Collections
 | 
						|
{
 | 
						|
    public class ManualCollectionsFolder : BasePluginFolder
 | 
						|
    {
 | 
						|
        public ManualCollectionsFolder()
 | 
						|
        {
 | 
						|
            Name = "Collections";
 | 
						|
            DisplayMediaType = "CollectionFolder";
 | 
						|
        }
 | 
						|
 | 
						|
        public override bool IsVisible(User user)
 | 
						|
        {
 | 
						|
            return base.IsVisible(user) && GetChildren(user, false).Any();
 | 
						|
        }
 | 
						|
 | 
						|
        public override bool IsHidden
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                return true;
 | 
						|
            }
 | 
						|
        }
 | 
						|
 | 
						|
        public override bool IsHiddenFromUser(User user)
 | 
						|
        {
 | 
						|
            return !user.Configuration.DisplayCollectionsView;
 | 
						|
        }
 | 
						|
 | 
						|
        public override string CollectionType
 | 
						|
        {
 | 
						|
            get { return Model.Entities.CollectionType.BoxSets; }
 | 
						|
        }
 | 
						|
 | 
						|
        public override string GetClientTypeName()
 | 
						|
        {
 | 
						|
            return typeof (CollectionFolder).Name;
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |