mirror of
https://github.com/SabreTools/SabreTools.RedumpLib.git
synced 2026-11-18 18:32:01 +00:00
Add template cookies input (nw)
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user