Add template cookies input (nw)

This commit is contained in:
Matt Nadareski
2026-10-01 23:19:11 -04:00
parent 54c713b7a2
commit 04bb5b6d96
5 changed files with 11 additions and 1 deletions

View File

@@ -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");

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;