mirror of
https://github.com/SabreTools/SabreTools.RedumpLib.git
synced 2026-11-15 17:01:37 +00:00
Handle new over-pagination site logic
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user