-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed quality being required when downloading, causing any videos with the best quality being lower than the one selected be undownloadable without selecting "best" (Download.cs) Fixed audio not downloading (Download.cs) Fixed the unnecessary amount of new calls in settings, for some reason... (frmSettings) Moved 8K to the top, it fits better there. (frmMain, Download.cs) Not available in this version, but being worked on: Added batch downloading (frmBatch) Added file merging (frmMain, Covert.cs) Those instances of future additions are not visible in youtube-dl-gui-compatible because youtube-dl-gui-compatible is a build with new additions omitted until they're completed due to the differences in the code due to .NET Framework 3.5. Consider the compatible branch a different application due to the amount of code changes.
- Loading branch information
Showing
14 changed files
with
707 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace youtube_dl_gui { | ||
public partial class frmBatch : Form { | ||
public string argsText = string.Empty; | ||
|
||
public frmBatch() { | ||
InitializeComponent(); | ||
if (System.IO.File.Exists(Environment.CurrentDirectory + "\\args.txt")) { | ||
argsText = System.IO.File.ReadAllText(Environment.CurrentDirectory + "\\args.txt"); | ||
|
||
if (argsText.Replace(" ", "") == "") | ||
argsText = "<empty args.txt>"; | ||
} | ||
else { | ||
argsText = "<args.txt unavailable>"; | ||
} | ||
} | ||
|
||
private void btnAdd_Click(object sender, EventArgs e) { | ||
if (comboBox1.SelectedIndex < 0) { | ||
return; | ||
} | ||
|
||
listLink.Items.Add(textBox1.Text); | ||
listType.Items.Add(comboBox1.GetItemText(comboBox1.SelectedItem)); | ||
switch (comboBox1.SelectedIndex) { | ||
case 2: | ||
listArgs.Items.Add(argsText); | ||
break; | ||
case 3: | ||
if (Saved.Default.downloadArgs.Replace(" ", "") == "") { | ||
listArgs.Items.Add("<saved args empty>"); | ||
} | ||
else { | ||
listArgs.Items.Add(Saved.Default.downloadArgs); | ||
} | ||
break; | ||
case 4: | ||
listArgs.Items.Add(textBox2.Text); | ||
break; | ||
default: | ||
listArgs.Items.Add("<n/a>"); | ||
break; | ||
} | ||
if (comboBox1.SelectedIndex < 4) { | ||
} | ||
else { | ||
} | ||
|
||
textBox1.Clear(); | ||
textBox2.Clear(); | ||
} | ||
|
||
private void btnRemove_Click(object sender, EventArgs e) { | ||
if (listLink.SelectedIndex == -1) { | ||
return; | ||
} | ||
|
||
int currentIndex = listLink.SelectedIndex; | ||
listLink.Items.RemoveAt(currentIndex); | ||
listType.Items.RemoveAt(currentIndex); | ||
listArgs.Items.RemoveAt(currentIndex); | ||
listLink.SelectedIndex = currentIndex; | ||
} | ||
|
||
private void btnStart_Click(object sender, EventArgs e) { | ||
|
||
} | ||
|
||
private void listLink_SelectedIndexChanged(object sender, EventArgs e) { | ||
listType.SelectedIndex = listLink.SelectedIndex; | ||
listArgs.SelectedIndex = listLink.SelectedIndex; | ||
} | ||
} | ||
} |
Oops, something went wrong.