mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	fixed indexing
This commit is contained in:
		
							parent
							
								
									93ad0e469c
								
							
						
					
					
						commit
						a0e8a079b4
					
				@ -731,6 +731,11 @@ namespace MediaBrowser.Controller.Entities
 | 
			
		||||
        /// <returns>List{Video}.</returns>
 | 
			
		||||
        private List<Trailer> LoadLocalTrailers()
 | 
			
		||||
        {
 | 
			
		||||
            if (LocationType != LocationType.FileSystem)
 | 
			
		||||
            {
 | 
			
		||||
                return new List<Trailer>();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            ItemResolveArgs resolveArgs;
 | 
			
		||||
 | 
			
		||||
            try
 | 
			
		||||
@ -789,6 +794,11 @@ namespace MediaBrowser.Controller.Entities
 | 
			
		||||
        /// <returns>List{Audio.Audio}.</returns>
 | 
			
		||||
        private List<Audio.Audio> LoadThemeSongs()
 | 
			
		||||
        {
 | 
			
		||||
            if (LocationType != LocationType.FileSystem)
 | 
			
		||||
            {
 | 
			
		||||
                return new List<Audio.Audio>();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            ItemResolveArgs resolveArgs;
 | 
			
		||||
 | 
			
		||||
            try
 | 
			
		||||
@ -847,6 +857,11 @@ namespace MediaBrowser.Controller.Entities
 | 
			
		||||
        /// <returns>List{Video}.</returns>
 | 
			
		||||
        private List<Video> LoadThemeVideos()
 | 
			
		||||
        {
 | 
			
		||||
            if (LocationType != LocationType.FileSystem)
 | 
			
		||||
            {
 | 
			
		||||
                return new List<Video>();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            ItemResolveArgs resolveArgs;
 | 
			
		||||
 | 
			
		||||
            try
 | 
			
		||||
 | 
			
		||||
@ -5,6 +5,7 @@ using System.Linq;
 | 
			
		||||
using System.Runtime.Serialization;
 | 
			
		||||
using System.Threading;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using MediaBrowser.Model.Entities;
 | 
			
		||||
 | 
			
		||||
namespace MediaBrowser.Controller.Entities
 | 
			
		||||
{
 | 
			
		||||
@ -64,6 +65,14 @@ namespace MediaBrowser.Controller.Entities
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public override LocationType LocationType
 | 
			
		||||
        {
 | 
			
		||||
            get
 | 
			
		||||
            {
 | 
			
		||||
                return LocationType.Virtual;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Override this to return the folder that should be used to construct a container
 | 
			
		||||
        /// for this item in an index.  GroupInIndex should be true as well.
 | 
			
		||||
 | 
			
		||||
@ -115,6 +115,11 @@ namespace MediaBrowser.Controller.Entities.Movies
 | 
			
		||||
        /// <returns>IEnumerable{Video}.</returns>
 | 
			
		||||
        private IEnumerable<Video> LoadSpecialFeatures()
 | 
			
		||||
        {
 | 
			
		||||
            if (LocationType != LocationType.FileSystem)
 | 
			
		||||
            {
 | 
			
		||||
                return new List<Video>();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            FileSystemInfo folder;
 | 
			
		||||
 | 
			
		||||
            try
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user