Fixed an off by 1 issue with reading manga (for real now)

This commit is contained in:
Joseph Milazzo 2021-02-12 17:56:21 -06:00
parent 9a50241734
commit 852317d3a6

View File

@ -113,7 +113,7 @@ namespace API.Services
Array.Sort(files, _numericComparer);
// Since array is 0 based, we need to keep that in account (only affects last image)
if (page - 1 == files.Length)
if (page == files.Length)
{
return (files.ElementAt(page - 1 - pagesSoFar), mangaFile);
}