Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Fixed Filenames
Browse files Browse the repository at this point in the history
Filenames now resort to using video title pulled from Youtube using the Google API and filename textbox reacts correctly to changes to the "Use Video Title" checkbox
  • Loading branch information
gfrn committed Aug 1, 2019
1 parent dd8a3c1 commit 7f3b4bc
Show file tree
Hide file tree
Showing 7 changed files with 833 additions and 838 deletions.
3 changes: 2 additions & 1 deletion Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ private void Form1_Load(object sender, EventArgs e)
FiletypeBox.SelectedIndex = 0;
}
destinationBox.Text = Settings.Default.Destination == "" ? Application.StartupPath : Settings.Default.Destination;
filenameBox.Enabled = !useTitleCheckbox.Checked;

CultureInfo currentCulture = Thread.CurrentThread.CurrentUICulture;

Expand Down Expand Up @@ -321,7 +322,7 @@ private void ModifyQueue(string ID, string filename, string path, int filetype,
{
Video video = new Video(this);
video.ID = ID;
video.name = filename;
video.name = filename == "%(title)s.%(ext)s" ? videoItem.Snippet.Title + ".%(ext)s": filename + ".%(ext)s"; //Temporary until title gathering returns to normal via YT-DL
video.path = path;
video.filetype = filetype;
video.thumbURL = videoItem.Snippet.Thumbnails.Default__.Url;
Expand Down
1,668 changes: 831 additions & 837 deletions Form1.resx

Large diffs are not rendered by default.

Binary file added packages/Google.Apis.1.36.1/_signature.p7s
Binary file not shown.
Binary file added packages/Google.Apis.Auth.1.36.1/_signature.p7s
Binary file not shown.
Binary file added packages/Google.Apis.Core.1.36.1/_signature.p7s
Binary file not shown.
Binary file not shown.
Binary file added packages/Newtonsoft.Json.10.0.2/_signature.p7s
Binary file not shown.

0 comments on commit 7f3b4bc

Please sign in to comment.