@ -316,7 +316,7 @@ namespace Jellyfin.Api.Controllers
TotalRecordCount = list.Count
};
if (limit.HasValue && limit > list.Count)
if (limit.HasValue && limit < list.Count)
{
list = list.GetRange(0, limit.Value);
}
@ -50,7 +50,7 @@ namespace Jellyfin.Api.Helpers
var returnItems = items;
if (limit.HasValue && limit > returnItems.Count)
if (limit.HasValue && limit < returnItems.Count)
returnItems = returnItems.GetRange(0, limit.Value);