pull/4424/head
Bond_009 4 years ago
parent b21919c7f4
commit 134fd0d960

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

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

Loading…
Cancel
Save