mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	update logging
This commit is contained in:
		
							parent
							
								
									1c815d2e72
								
							
						
					
					
						commit
						a69f8ecb3d
					
				@ -170,10 +170,13 @@ namespace MediaBrowser.Controller.Entities.TV
 | 
			
		||||
 | 
			
		||||
            Func<BaseItem, bool> filter = i => UserViewBuilder.Filter(i, user, query, UserDataManager, LibraryManager);
 | 
			
		||||
 | 
			
		||||
            Logger.Debug("Season.GetItemsInternal entering GetEpisodes");
 | 
			
		||||
            var items = GetEpisodes(user).Where(filter);
 | 
			
		||||
 | 
			
		||||
            Logger.Debug("Season.GetItemsInternal entering PostFilterAndSort");
 | 
			
		||||
            var result = PostFilterAndSort(items, query);
 | 
			
		||||
 | 
			
		||||
            Logger.Debug("Season.GetItemsInternal complete");
 | 
			
		||||
            return Task.FromResult(result);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -379,13 +379,19 @@ namespace MediaBrowser.Controller.Entities.TV
 | 
			
		||||
 | 
			
		||||
        private IEnumerable<Episode> GetAllEpisodes(User user)
 | 
			
		||||
        {
 | 
			
		||||
            return LibraryManager.GetItemList(new InternalItemsQuery(user)
 | 
			
		||||
            Logger.Debug("Series.GetAllEpisodes entering GetItemList");
 | 
			
		||||
 | 
			
		||||
            var result =  LibraryManager.GetItemList(new InternalItemsQuery(user)
 | 
			
		||||
            {
 | 
			
		||||
                AncestorWithPresentationUniqueKey = GetUniqueSeriesKey(this),
 | 
			
		||||
                IncludeItemTypes = new[] { typeof(Episode).Name },
 | 
			
		||||
                SortBy = new[] { ItemSortBy.SortName }
 | 
			
		||||
 | 
			
		||||
            }).Cast<Episode>();
 | 
			
		||||
            }).Cast<Episode>().ToList();
 | 
			
		||||
 | 
			
		||||
            Logger.Debug("Series.GetAllEpisodes returning {0} episodes", result.Count);
 | 
			
		||||
 | 
			
		||||
            return result;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public IEnumerable<Episode> GetSeasonEpisodes(User user, Season parentSeason, bool includeMissingEpisodes, bool includeVirtualUnairedEpisodes)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user