File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -209,11 +209,6 @@ private void buttonClear_Click(object sender, EventArgs e)
209
209
210
210
private async void buttonDownload_Click ( object sender , EventArgs e )
211
211
{
212
- if ( tabControl . SelectedIndex == 2 )
213
- {
214
- tabControl . SelectedIndex = 0 ;
215
- return ;
216
- }
217
212
var mode = tabControl . SelectedIndex ;
218
213
foreach ( string url in textURL . Lines )
219
214
{
@@ -291,7 +286,7 @@ private string GetTitle(string url)
291
286
using ( Process p = new Process ( ) )
292
287
{
293
288
p . StartInfo . FileName = "yt-dlp.exe" ;
294
- p . StartInfo . Arguments = $ "--no-playlist --get-title --encoding \" UTF-8 \" \" { url } \" ";
289
+ p . StartInfo . Arguments = $ "--encoding \" UTF-8 \" --print filename -o \" %(title)s \" \" { url } \" ";
295
290
p . StartInfo . CreateNoWindow = true ;
296
291
p . StartInfo . UseShellExecute = false ;
297
292
p . StartInfo . StandardOutputEncoding = Encoding . UTF8 ;
You can’t perform that action at this time.
0 commit comments