The Free Software Media System - Server Backend & API
remove language filters from old Items endpoint
TheMelmacian068b3fd58d23
diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.csindex 8eca2787b1..e599aa3d34 100644--- a/Jellyfin.Api/Controllers/ItemsController.cs+++ b/Jellyfin.Api/Controllers/ItemsController.cs@@ -158,7 +158,7 @@ public class ItemsController : BaseJellyfinApiController/// <param name="studioIds">Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.</param>/// <param name="genreIds">Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.</param>/// <param name="audioLanguages">Optional. If specified, results will be filtered based on audio language. This allows multiple, comma delimited values.</param>- /// <param name="subtitleLanguages">Optional. If specified, results will be filtered based on subtitale language. This allows multiple, comma delimited values.</param>+ /// <param name="subtitleLanguages">Optional. If specified, results will be filtered based on subtitle language. This allows multiple, comma delimited values.</param>/// <param name="enableTotalRecordCount">Optional. Enable the total record count.</param>/// <param name="enableImages">Optional, include image information in output.</param>/// <returns>A <see cref="QueryResult{BaseItemDto}"/> with the items.</returns>@@ -414,7 +414,7 @@ public class ItemsController : BaseJellyfinApiControllerif (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 existencequery.HasSubtitles = null;@@ -640,8 +640,6 @@ public class ItemsController : BaseJellyfinApiController/// <param name="nameLessThan">Optional filter by items whose name is equally or lesser than a given input string.</param>/// <param name="studioIds">Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.</param>/// <param name="genreIds">Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.</param>- /// <param name="audioLanguages">Optional. If specified, results will be filtered based on audio language. This allows multiple, comma delimited values.</param>- /// <param name="subtitleLanguages">Optional. If specified, results will be filtered based on subtitale language. This allows multiple, comma delimited values.</param>/// <param name="enableTotalRecordCount">Optional. Enable the total record count.</param>/// <param name="enableImages">Optional, include image information in output.</param>/// <returns>A <see cref="QueryResult{BaseItemDto}"/> with the items.</returns>@@ -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 : BaseJellyfinApiControllernameLessThan,studioIds,genreIds,- audioLanguages,- subtitleLanguages,+ [],+ [],enableTotalRecordCount,enableImages).ConfigureAwait(false);