|  | @@ -1,6 +1,8 @@
 | 
	
		
			
				|  |  |  using System;
 | 
	
		
			
				|  |  | +using System.Collections.Generic;
 | 
	
		
			
				|  |  |  using System.Linq;
 | 
	
		
			
				|  |  |  using Jellyfin.Api.Helpers;
 | 
	
		
			
				|  |  | +using MediaBrowser.Common.Extensions;
 | 
	
		
			
				|  |  |  using MediaBrowser.Controller.Dto;
 | 
	
		
			
				|  |  |  using MediaBrowser.Model.Entities;
 | 
	
		
			
				|  |  |  using MediaBrowser.Model.Querying;
 | 
	
	
		
			
				|  | @@ -43,7 +45,7 @@ namespace Jellyfin.Api.Extensions
 | 
	
		
			
				|  |  |                      client.IndexOf("media center", StringComparison.OrdinalIgnoreCase) != -1 ||
 | 
	
		
			
				|  |  |                      client.IndexOf("classic", StringComparison.OrdinalIgnoreCase) != -1)
 | 
	
		
			
				|  |  |                  {
 | 
	
		
			
				|  |  | -                    int oldLen = dtoOptions.Fields.Length;
 | 
	
		
			
				|  |  | +                    int oldLen = dtoOptions.Fields.Count;
 | 
	
		
			
				|  |  |                      var arr = new ItemFields[oldLen + 1];
 | 
	
		
			
				|  |  |                      dtoOptions.Fields.CopyTo(arr, 0);
 | 
	
		
			
				|  |  |                      arr[oldLen] = ItemFields.RecursiveItemCount;
 | 
	
	
		
			
				|  | @@ -61,7 +63,7 @@ namespace Jellyfin.Api.Extensions
 | 
	
		
			
				|  |  |                      client.IndexOf("samsung", StringComparison.OrdinalIgnoreCase) != -1 ||
 | 
	
		
			
				|  |  |                      client.IndexOf("androidtv", StringComparison.OrdinalIgnoreCase) != -1)
 | 
	
		
			
				|  |  |                  {
 | 
	
		
			
				|  |  | -                    int oldLen = dtoOptions.Fields.Length;
 | 
	
		
			
				|  |  | +                    int oldLen = dtoOptions.Fields.Count;
 | 
	
		
			
				|  |  |                      var arr = new ItemFields[oldLen + 1];
 | 
	
		
			
				|  |  |                      dtoOptions.Fields.CopyTo(arr, 0);
 | 
	
		
			
				|  |  |                      arr[oldLen] = ItemFields.ChildCount;
 | 
	
	
		
			
				|  | @@ -90,7 +92,7 @@ namespace Jellyfin.Api.Extensions
 | 
	
		
			
				|  |  |              bool? enableImages,
 | 
	
		
			
				|  |  |              bool? enableUserData,
 | 
	
		
			
				|  |  |              int? imageTypeLimit,
 | 
	
		
			
				|  |  | -            ImageType[] enableImageTypes)
 | 
	
		
			
				|  |  | +            IReadOnlyList<ImageType> enableImageTypes)
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              dtoOptions.EnableImages = enableImages ?? true;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -104,7 +106,7 @@ namespace Jellyfin.Api.Extensions
 | 
	
		
			
				|  |  |                  dtoOptions.EnableUserData = enableUserData.Value;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            if (enableImageTypes.Length != 0)
 | 
	
		
			
				|  |  | +            if (enableImageTypes.Count != 0)
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  dtoOptions.ImageTypes = enableImageTypes;
 | 
	
		
			
				|  |  |              }
 |