This commit is contained in:
Bond_009 2020-11-06 16:39:41 +01:00
parent b21919c7f4
commit 134fd0d960
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}