Use added date for empty page checks

This commit is contained in:
Matt Nadareski
2026-02-28 10:08:55 -05:00
parent 03b7195b2c
commit c0b27b62d0

View File

@@ -731,8 +731,12 @@ namespace SabreTools.RedumpLib.Web
return false;
}
// Check the added date as a backup
oldResult = Constants.AddedRegex.Match(oldDiscPage);
newResult = Constants.AddedRegex.Match(discPage);
// If the downloaded data is invalid or otherwise empty, skip it
else if (oldResult.Success && !newResult.Success)
if (oldResult.Success && !newResult.Success)
{
Console.WriteLine($"ID {paddedId} retieved an empty page, skipping...");
return false;
@@ -910,8 +914,12 @@ namespace SabreTools.RedumpLib.Web
return false;
}
// Check the added date as a backup
oldResult = Constants.AddedRegex.Match(oldDiscPage);
newResult = Constants.AddedRegex.Match(discPage);
// If the downloaded data is invalid or otherwise empty, skip it
else if (oldResult.Success && !newResult.Success)
if (oldResult.Success && !newResult.Success)
{
Console.WriteLine($"ID {paddedId} retieved an empty page, skipping...");
return false;