Remove attempting to pull disc key from pages

This commit is contained in:
Matt Nadareski
2026-10-15 11:52:23 -04:00
parent 0d62e784a8
commit e987d3b38f
2 changed files with 0 additions and 14 deletions

View File

@@ -49,11 +49,6 @@ namespace SabreTools.RedumpLib.Data
/// </summary>
public static readonly Regex DiscRegex = new(@"<a href=""/disc/(\d+)"">", RegexOptions.Compiled);
/// <summary>
/// Regex matching the disc key on a PS3 or Wii U disc page
/// </summary>
public static readonly Regex DiscKeyRegex = new(@"<tr><td><strong>Disc Key</strong></td><td>(.*?)</td></tr>", RegexOptions.Compiled);
/// <summary>
/// Regex matching the disc number field on a disc page
/// </summary>

View File

@@ -178,15 +178,6 @@ namespace SabreTools.RedumpLib.Tools
info.DiscIdentifiers.Version = $"(VERIFY THIS) {WebUtility.HtmlDecode(match.Groups[1].Value)}";
}
// Disc Key
if (string.IsNullOrEmpty(info.DiscIdentifiers.DiscKey))
{
// Validate key is not NULL
match = Constants.DiscKeyRegex.Match(discData);
if (match.Success && match.Groups[1].Value != "<span class=\"null\">NULL</span>")
info.DiscIdentifiers.DiscKey = match.Groups[1].Value;
}
// TODO: Unify handling of fields that can include site codes (Comments/Contents)
// Comments