Skip to content

Commit

Permalink
add arguments missing from the preview tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxstupo committed Mar 28, 2021
1 parent 435b0f9 commit 933eb9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions YDL-UI/Forms/FormAddDownload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,15 @@ private void UpdateCommandPreview() {
YdlArguments args = new YdlArguments { Url = txtUrl.Text };
SetArguments(args);

// Arguments from the Download class.
args.General.IgnoreConfig = true;
args.FileSystem.NoCacheDir = true;
args.PostProcessing.PreferFFmpeg = true;
args.PostProcessing.FFmpegLocation = downloadManager.FfmpegPath;
#if DEBUG
args.Verbosity.Simulate = true;
#endif

txtCommandPreview.Text = $"\"{downloadManager.YdlPath}\" {Download.ArgumentSerializer.Serialize(args)}";
}
}
Expand Down

0 comments on commit 933eb9f

Please sign in to comment.