diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.cs index 8eca2787b1..e599aa3d34 100644 --- a/Jellyfin.Api/Controllers/ItemsController.cs +++ b/Jellyfin.Api/Controllers/ItemsController.cs @@ -158,7 +158,7 @@ public class ItemsController : BaseJellyfinApiController /// Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. /// Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. /// Optional. If specified, results will be filtered based on audio language. This allows multiple, comma delimited values. - /// Optional. If specified, results will be filtered based on subtitale language. This allows multiple, comma delimited values. + /// Optional. If specified, results will be filtered based on subtitle language. This allows multiple, comma delimited values. /// Optional. Enable the total record count. /// Optional, include image information in output. /// A with the items. @@ -414,7 +414,7 @@ public class ItemsController : BaseJellyfinApiController if (query.SubtitleLanguages.Count > 0 && query.HasSubtitles.HasValue) { - if (query.HasSubtitles.Value is true) + if (query.HasSubtitles.Value) { // if we check for specific subtitles we don't need a separate check for subtitle existence query.HasSubtitles = null; @@ -640,8 +640,6 @@ public class ItemsController : BaseJellyfinApiController /// Optional filter by items whose name is equally or lesser than a given input string. /// Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. /// Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. - /// Optional. If specified, results will be filtered based on audio language. This allows multiple, comma delimited values. - /// Optional. If specified, results will be filtered based on subtitale language. This allows multiple, comma delimited values. /// Optional. Enable the total record count. /// Optional, include image information in output. /// A with the items. @@ -733,8 +731,6 @@ public class ItemsController : BaseJellyfinApiController [FromQuery] string? nameLessThan, [FromQuery, ModelBinder(typeof(CommaDelimitedCollectionModelBinder))] Guid[] studioIds, [FromQuery, ModelBinder(typeof(CommaDelimitedCollectionModelBinder))] Guid[] genreIds, - [FromQuery, ModelBinder(typeof(CommaDelimitedCollectionModelBinder))] string[] audioLanguages, - [FromQuery, ModelBinder(typeof(CommaDelimitedCollectionModelBinder))] string[] subtitleLanguages, [FromQuery] bool enableTotalRecordCount = true, [FromQuery] bool? enableImages = true) => await GetItems( @@ -822,8 +818,8 @@ public class ItemsController : BaseJellyfinApiController nameLessThan, studioIds, genreIds, - audioLanguages, - subtitleLanguages, + [], + [], enableTotalRecordCount, enableImages).ConfigureAwait(false);