From a66fcda4a36b692db855451a3b0fe67bd6a21edb Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 2 Mar 2026 23:01:27 -0500 Subject: [PATCH] Always check for empty disc pages --- SabreTools.RedumpLib/Web/RedumpClient.cs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/SabreTools.RedumpLib/Web/RedumpClient.cs b/SabreTools.RedumpLib/Web/RedumpClient.cs index 383a39a..a839842 100644 --- a/SabreTools.RedumpLib/Web/RedumpClient.cs +++ b/SabreTools.RedumpLib/Web/RedumpClient.cs @@ -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