Handle new over-pagination site logic

This commit is contained in:
Matt Nadareski
2026-10-16 16:42:53 -04:00
parent 4f07c23c1f
commit a9fcadfa46
2 changed files with 16 additions and 0 deletions

View File

@@ -172,6 +172,10 @@ namespace SabreTools.RedumpLib.Web
if (pageIds is null)
return [];
// If all page IDs are already found, assume the last page was reached
if (pageIds.TrueForAll(ids.Contains))
break;
ids.AddRange(pageIds);
if (pageIds.Count == 0)
break;
@@ -400,6 +404,10 @@ namespace SabreTools.RedumpLib.Web
if (pageIds is null)
return [];
// If all page IDs are already found, assume the last page was reached
if (pageIds.TrueForAll(ids.Contains))
break;
ids.AddRange(pageIds);
if (pageIds.Count <= 1)
break;

View File

@@ -65,6 +65,10 @@ namespace SabreTools.RedumpLib.Web
if (pageIds is null)
return [];
// If all page IDs are already found, assume the last page was reached
if (pageIds.TrueForAll(ids.Contains))
break;
ids.AddRange(pageIds);
if (pageIds.Count == 0)
break;
@@ -180,6 +184,10 @@ namespace SabreTools.RedumpLib.Web
if (pageIds is null)
return [];
// If all page IDs are already found, assume the last page was reached
if (pageIds.TrueForAll(ids.Contains))
break;
ids.AddRange(pageIds);
if (pageIds.Count <= 1)
break;