diff --git a/Kyoo.Common/Utility.cs b/Kyoo.Common/Utility.cs index 8b068fff..01dc58d8 100644 --- a/Kyoo.Common/Utility.cs +++ b/Kyoo.Common/Utility.cs @@ -205,7 +205,7 @@ namespace Kyoo public static IEnumerable> BatchBy(this List list, int countPerList) { for (int i = 0; i < list.Count; i += countPerList) - yield return list.GetRange(i, Math.Min(list.Count - i, i + countPerList)); + yield return list.GetRange(i, Math.Min(list.Count - i, countPerList)); } } } \ No newline at end of file