From 157bb4e838ff9b64be31505d8a5a27c64b3ea65a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 2 Mar 2026 22:15:42 -0500 Subject: [PATCH] Actually reduce code in Site feature --- RedumpTool/Features/SiteFeature.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/RedumpTool/Features/SiteFeature.cs b/RedumpTool/Features/SiteFeature.cs index d49a630..cd6b45a 100644 --- a/RedumpTool/Features/SiteFeature.cs +++ b/RedumpTool/Features/SiteFeature.cs @@ -143,6 +143,13 @@ namespace RedumpTool.Features bool onlyNew = OnlyNewInput.Value; int limit = LimitInput.Value ?? -1; + // Override individual flags if shorthand flags used + if (onlyNew) + { + sort = SortCategory.Modified; + sortDir = SortDirection.Descending; + } + // Output directory validation if (!ValidateAndCreateOutputDirectory(outDir)) return false; @@ -161,14 +168,7 @@ namespace RedumpTool.Features // Start the processing Task> processingTask; - if (onlyNew) - { - processingTask = _client.DownloadDiscsResults(outDir, - sort: SortCategory.Modified, - sortDir: SortDirection.Descending, - limit: limit); - } - else if (minId >= 0 && maxId >= 0) + if (minId >= 0 && maxId >= 0) { processingTask = _client.DownloadSiteRange(outDir, minId, maxId); }