mirror of
https://github.com/SabreTools/SabreTools.RedumpLib.git
synced 2026-11-17 18:01:02 +00:00
Remove attempting to pull disc key from pages
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user