diff --git a/SabreTools.RedumpLib/Web/RedumpClient.cs b/SabreTools.RedumpLib/Web/RedumpClient.cs index e6f5d38..4b62c05 100644 --- a/SabreTools.RedumpLib/Web/RedumpClient.cs +++ b/SabreTools.RedumpLib/Web/RedumpClient.cs @@ -496,10 +496,9 @@ namespace SabreTools.RedumpLib.Web /// /// Process a Redump WIP page as a list of possible IDs or disc page /// - /// RedumpWebClient to access the packs /// List of IDs from the page, empty on none, null on error /// Limited to moderators and staff - public async Task?> CheckSingleWIPPage(string url) + public async Task?> CheckSingleWIPPage() { List ids = []; @@ -511,19 +510,20 @@ namespace SabreTools.RedumpLib.Web } // Try to retrieve the data + string url = Constants.WipDumpsUrl; string? dumpsPage = await DownloadString(url); // If the web client failed, return null if (dumpsPage is null) { - if (Debug) Console.WriteLine($"DEBUG: CheckSingleWIPPage(\"{url}\") - Client failure"); + if (Debug) Console.WriteLine($"DEBUG: CheckSingleWIPPage() - Client failure"); return null; } // If we have no dumps left if (dumpsPage.Contains("No discs found.")) { - if (Debug) Console.WriteLine($"DEBUG: CheckSingleWIPPage(\"{url}\") - No discs found"); + if (Debug) Console.WriteLine($"DEBUG: CheckSingleWIPPage() - No discs found"); return ids; } @@ -552,17 +552,16 @@ namespace SabreTools.RedumpLib.Web /// /// Process a Redump WIP page as a list of possible IDs or disc page /// - /// RedumpWebClient to access the packs /// Output directory to save data to /// List of IDs that were found on success, empty on error /// Limited to moderators and staff - public async Task?> CheckSingleWIPPage(string url, string? outDir) + public async Task?> CheckSingleWIPPage(string? outDir) { // Get all IDs from the page - List? ids = await CheckSingleWIPPage(url); + List? ids = await CheckSingleWIPPage(); if (ids is null) { - if (Debug) Console.WriteLine($"DEBUG: CheckSingleWIPPage(\"{url}\", \"{outDir}\") - Client failure"); + if (Debug) Console.WriteLine($"DEBUG: CheckSingleWIPPage(\"{outDir}\") - Client failure"); return null; } diff --git a/SabreTools.RedumpLib/Web/WIP.cs b/SabreTools.RedumpLib/Web/WIP.cs index 539ec8f..6337cea 100644 --- a/SabreTools.RedumpLib/Web/WIP.cs +++ b/SabreTools.RedumpLib/Web/WIP.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Threading.Tasks; -using SabreTools.RedumpLib.Data; namespace SabreTools.RedumpLib.Web { @@ -17,7 +16,7 @@ namespace SabreTools.RedumpLib.Web /// All disc IDs in last submitted range, empty on error public static async Task> DownloadLastSubmitted(this RedumpClient client, string? outDir) { - return await client.CheckSingleWIPPage(Constants.WipDumpsUrl, outDir) ?? []; + return await client.CheckSingleWIPPage(outDir) ?? []; } ///