> -> <
This commit is contained in:
parent
b21919c7f4
commit
134fd0d960
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user