mirror of
https://github.com/SabreTools/SabreTools.RedumpLib.git
synced 2026-09-23 23:45:01 +00:00
Always check for empty disc pages
This commit is contained in:
@@ -1132,17 +1132,14 @@ namespace SabreTools.RedumpLib.Web
|
||||
Console.WriteLine($"ID {paddedId} has not been changed since last download, skipping...");
|
||||
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
|
||||
if (oldResult.Success && !newResult.Success)
|
||||
{
|
||||
Console.WriteLine($"ID {paddedId} retieved an empty page, skipping...");
|
||||
return false;
|
||||
}
|
||||
// If the downloaded data is invalid or otherwise empty, skip it
|
||||
var hasAddedDate = Constants.AddedRegex.Match(discPage);
|
||||
if (!hasAddedDate.Success)
|
||||
{
|
||||
Console.WriteLine($"ID {paddedId} retieved an empty page, skipping...");
|
||||
return false;
|
||||
}
|
||||
|
||||
// Create ID subdirectory
|
||||
|
||||
Reference in New Issue
Block a user