From 04bb5b6d96c4f3e7c1fd960cb2768e87d1c32b64 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 1 Oct 2026 23:19:11 -0400 Subject: [PATCH] Add template cookies input (nw) --- RedumpTool/Features/BaseFeature.cs | 3 +++ RedumpTool/Features/PacksFeature.cs | 2 ++ RedumpTool/Features/QueueFeature.cs | 2 ++ RedumpTool/Features/SiteFeature.cs | 3 ++- RedumpTool/Features/UserFeature.cs | 2 ++ 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/RedumpTool/Features/BaseFeature.cs b/RedumpTool/Features/BaseFeature.cs index 08fc65f..975f825 100644 --- a/RedumpTool/Features/BaseFeature.cs +++ b/RedumpTool/Features/BaseFeature.cs @@ -14,6 +14,9 @@ namespace RedumpTool.Features private const string _attemptCountName = "attemptcount"; internal readonly Int32Input AttemptCountInput = new(_attemptCountName, ["-a", "--attempts"], "Number of attempts for web requests (default 3"); + private const string _cookiesName = "cookies"; + internal readonly StringInput CookiesInput = new(_cookiesName, ["--cookies"], "Load and save a cookies file"); + private const string _debugName = "debug"; internal readonly FlagInput DebugInput = new(_debugName, ["-d", "--debug"], "Enable debug mode"); diff --git a/RedumpTool/Features/PacksFeature.cs b/RedumpTool/Features/PacksFeature.cs index 7e0563b..c466dab 100644 --- a/RedumpTool/Features/PacksFeature.cs +++ b/RedumpTool/Features/PacksFeature.cs @@ -36,6 +36,7 @@ namespace RedumpTool.Features Add(OutputInput); Add(UsernameInput); Add(PasswordInput); + Add(CookiesInput); Add(AttemptCountInput); Add(TimeoutInput); Add(ForceDownloadInput); @@ -53,6 +54,7 @@ namespace RedumpTool.Features string? outDir = OutputInput.Value; string? username = UsernameInput.Value; string? password = PasswordInput.Value; + string? cookieFile = CookiesInput.Value; int? attemptCount = AttemptCountInput.Value; int? timeout = TimeoutInput.Value; bool forceDownload = ForceDownloadInput.Value; diff --git a/RedumpTool/Features/QueueFeature.cs b/RedumpTool/Features/QueueFeature.cs index 665e281..35465d8 100644 --- a/RedumpTool/Features/QueueFeature.cs +++ b/RedumpTool/Features/QueueFeature.cs @@ -69,6 +69,7 @@ namespace RedumpTool.Features Add(OutputInput); Add(UsernameInput); Add(PasswordInput); + Add(CookiesInput); Add(AttemptCountInput); Add(TimeoutInput); Add(ForceDownloadInput); @@ -98,6 +99,7 @@ namespace RedumpTool.Features string? outDir = OutputInput.Value; string? username = UsernameInput.Value; string? password = PasswordInput.Value; + string? cookieFile = CookiesInput.Value; int? attemptCount = AttemptCountInput.Value; int? timeout = TimeoutInput.Value; bool forceDownload = ForceDownloadInput.Value; diff --git a/RedumpTool/Features/SiteFeature.cs b/RedumpTool/Features/SiteFeature.cs index c01b4a9..1bb5fcb 100644 --- a/RedumpTool/Features/SiteFeature.cs +++ b/RedumpTool/Features/SiteFeature.cs @@ -7,7 +7,6 @@ using SabreTools.RedumpLib.Web; namespace RedumpTool.Features { - // TODO: Add back every single URL parameter to here internal sealed class SiteFeature : BaseFeature { #region Feature Definition @@ -157,6 +156,7 @@ namespace RedumpTool.Features Add(OutputInput); Add(UsernameInput); Add(PasswordInput); + Add(CookiesInput); Add(AttemptCountInput); Add(TimeoutInput); Add(ForceDownloadInput); @@ -215,6 +215,7 @@ namespace RedumpTool.Features string? outDir = OutputInput.Value; string? username = UsernameInput.Value; string? password = PasswordInput.Value; + string? cookieFile = CookiesInput.Value; int? attemptCount = AttemptCountInput.Value; int? timeout = TimeoutInput.Value; bool forceDownload = ForceDownloadInput.Value; diff --git a/RedumpTool/Features/UserFeature.cs b/RedumpTool/Features/UserFeature.cs index b7ac20d..bd411c1 100644 --- a/RedumpTool/Features/UserFeature.cs +++ b/RedumpTool/Features/UserFeature.cs @@ -42,6 +42,7 @@ namespace RedumpTool.Features Add(OutputInput); Add(UsernameInput); Add(PasswordInput); + Add(CookiesInput); Add(AttemptCountInput); Add(TimeoutInput); Add(ForceDownloadInput); @@ -60,6 +61,7 @@ namespace RedumpTool.Features string? outDir = OutputInput.Value; string? username = UsernameInput.Value; string? password = PasswordInput.Value; + string? cookieFile = CookiesInput.Value; int? attemptCount = AttemptCountInput.Value; int? timeout = TimeoutInput.Value; bool forceDownload = ForceDownloadInput.Value;