From 0d62e784a884df574ddc5408a3868bf75eea4547 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 12 Oct 2026 09:08:29 -0400 Subject: [PATCH] Add LSD support --- .../Endpoints/DiscTests.cs | 1 + SabreTools.RedumpLib/Data/Constants.cs | 1 + SabreTools.RedumpLib/Data/Enumerations.cs | 3 +++ SabreTools.RedumpLib/Endpoints/Disc.cs | 1 + SabreTools.RedumpLib/Web/Client.cs | 17 +++++++++++++++++ 5 files changed, 23 insertions(+) diff --git a/SabreTools.RedumpLib.Test/Endpoints/DiscTests.cs b/SabreTools.RedumpLib.Test/Endpoints/DiscTests.cs index bba6652..9f684c6 100644 --- a/SabreTools.RedumpLib.Test/Endpoints/DiscTests.cs +++ b/SabreTools.RedumpLib.Test/Endpoints/DiscTests.cs @@ -22,6 +22,7 @@ namespace SabreTools.RedumpLib.Test.Endpoints [InlineData(DiscSubpath.Cuesheet, "https://redump.info/disc/1/cue")] [InlineData(DiscSubpath.Edit, "https://redump.info/disc/1/edit")] [InlineData(DiscSubpath.SBI, "https://redump.info/disc/1/sbi")] + [InlineData(DiscSubpath.LSD, "https://redump.info/disc/1/lsd")] public void BuildUrl_Subpath_Builds(DiscSubpath? subpath, string expected) { var endpoint = new RedumpLib.Endpoints.Disc diff --git a/SabreTools.RedumpLib/Data/Constants.cs b/SabreTools.RedumpLib/Data/Constants.cs index 1799770..b181bd6 100644 --- a/SabreTools.RedumpLib/Data/Constants.cs +++ b/SabreTools.RedumpLib/Data/Constants.cs @@ -147,6 +147,7 @@ namespace SabreTools.RedumpLib.Data DiscSubpath.Edit, DiscSubpath.History, DiscSubpath.SBI, + DiscSubpath.LSD, ]; #endregion diff --git a/SabreTools.RedumpLib/Data/Enumerations.cs b/SabreTools.RedumpLib/Data/Enumerations.cs index 3a1897a..e83bc01 100644 --- a/SabreTools.RedumpLib/Data/Enumerations.cs +++ b/SabreTools.RedumpLib/Data/Enumerations.cs @@ -58,6 +58,9 @@ namespace SabreTools.RedumpLib.Data [HumanReadable(LongName = "SBI", ShortName = "sbi")] SBI = 4, + + [HumanReadable(LongName = "LSD", ShortName = "lsd")] + LSD = 5, } /// diff --git a/SabreTools.RedumpLib/Endpoints/Disc.cs b/SabreTools.RedumpLib/Endpoints/Disc.cs index 54a78e1..34fe767 100644 --- a/SabreTools.RedumpLib/Endpoints/Disc.cs +++ b/SabreTools.RedumpLib/Endpoints/Disc.cs @@ -31,6 +31,7 @@ namespace SabreTools.RedumpLib.Endpoints case DiscSubpath.Cuesheet: case DiscSubpath.Edit: case DiscSubpath.SBI: + case DiscSubpath.LSD: ub.Path += $"/{Subpath.ShortName()}"; break; diff --git a/SabreTools.RedumpLib/Web/Client.cs b/SabreTools.RedumpLib/Web/Client.cs index b45cfc1..f55a6a2 100644 --- a/SabreTools.RedumpLib/Web/Client.cs +++ b/SabreTools.RedumpLib/Web/Client.cs @@ -1161,6 +1161,23 @@ namespace SabreTools.RedumpLib.Web } } + // LSD + if ((discSubpaths is null || Array.Exists(discSubpaths, s => s is DiscSubpath.LSD)) && discPage.Contains($"