diff --git a/JackTheVideoRipper/Properties/AssemblyInfo.cs b/JackTheVideoRipper/Properties/AssemblyInfo.cs index 763a4c6..8a7cb35 100644 --- a/JackTheVideoRipper/Properties/AssemblyInfo.cs +++ b/JackTheVideoRipper/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.2.0.0")] -[assembly: AssemblyFileVersion("0.2.0.0")] +[assembly: AssemblyVersion("0.3.0.0")] +[assembly: AssemblyFileVersion("0.3.0.0")] diff --git a/JackTheVideoRipper/src/YouTubeDL.cs b/JackTheVideoRipper/src/YouTubeDL.cs index e3da801..646134f 100644 --- a/JackTheVideoRipper/src/YouTubeDL.cs +++ b/JackTheVideoRipper/src/YouTubeDL.cs @@ -6,10 +6,11 @@ namespace JackTheVideoRipper { class YouTubeDL { + public static string defaultDownloadPath = Path.Combine(Environment.ExpandEnvironmentVariables("%userprofile%"), "Downloads"); private static string binName = "youtube-dl.exe"; private static string binPath = Common.AppPath + "\\" + binName; private static string downloadURL = "https://yt-dl.org/downloads/latest/youtube-dl.exe"; - public static string defaultDownloadPath = Path.Combine(Environment.ExpandEnvironmentVariables("%userprofile%"), "Downloads"); + private static string titleFormat = "%(title)s.%(ext)s"; private static bool exists() { @@ -37,12 +38,12 @@ public static void checkForUpdates() public static void downloadVideo(string url) { - CLI.runCommand(binName + " -f bestvideo[ext!=webm]‌​+bestaudio[ext!=webm]‌​/best[ext!=webm] --merge-output-format mp4 --no-check-certificate -o " + defaultDownloadPath + "\\%(title)s.%(ext)s " + url); + CLI.runCommand(binName + " -f best --no-check-certificate -o " + defaultDownloadPath + "\\" + titleFormat + " " + url); } public static void downloadAudio(string url) { - CLI.runCommand(binName + " -f bestaudio -x --audio-format mp3 --no-check-certificate -o " + defaultDownloadPath + "\\%(title)s.%(ext)s " + url); + CLI.runCommand(binName + " -f bestaudio -x --audio-format mp3 --no-check-certificate -o " + defaultDownloadPath + "\\" + titleFormat + " " + url); } } } diff --git a/JackTheVideoRipper/views/FrameAbout.Designer.cs b/JackTheVideoRipper/views/FrameAbout.Designer.cs index 5695043..d4696e8 100644 --- a/JackTheVideoRipper/views/FrameAbout.Designer.cs +++ b/JackTheVideoRipper/views/FrameAbout.Designer.cs @@ -63,7 +63,7 @@ private void InitializeComponent() this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(75, 29); this.label2.TabIndex = 2; - this.label2.Text = "v0.2.0"; + this.label2.Text = "v0.3.0"; // // FrameAbout //