Skip to content

Commit

Permalink
chore: change to dl-args
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenopy committed Aug 29, 2024
1 parent 072e224 commit f1a884e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2748,7 +2748,7 @@ public async void downloadInstallGameButton_Click(object sender, EventArgs e)
t1 = new Thread(() =>
{
string rclonecommand =
$"copy \":http:/{gameNameHash}/\" \"{downloadDirectory}\" {extraArgs} --progress --rc --check-first --fast-list {bandwidthLimit}";
$"copy \":http:/{gameNameHash}/\" \"{downloadDirectory}\" {extraArgs} --progress --rc {bandwidthLimit}";
gameDownloadOutput = RCLONE.runRcloneCommand_PublicConfig(rclonecommand);
});
Utilities.Metrics.CountDownload(packagename, versioncode);
Expand Down
3 changes: 2 additions & 1 deletion RCLONE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,12 @@ public static ProcessOutput runRcloneCommand_PublicConfig(string command)
logcmd = logcmd.Replace($"{Environment.CurrentDirectory}", $"CurrentDirectory");
}

command += $" --inplace";

_ = Logger.Log($"Running Rclone command: {logcmd}");

//set http source & args
command += $" --http-url {MainForm.PublicConfigFile.BaseUri} {MainForm.PublicMirrorExtraArgs}";

rclone.StartInfo.FileName = Path.Combine(Environment.CurrentDirectory, "rclone", "rclone.exe");
rclone.StartInfo.Arguments = command;
rclone.StartInfo.RedirectStandardInput = true;
Expand Down

0 comments on commit f1a884e

Please sign in to comment.