From 907001821ec4f2d222cd250b287ad428d7d8c020 Mon Sep 17 00:00:00 2001 From: Martin Eesmaa <88035011+MartinEesmaa@users.noreply.github.com> Date: Sun, 27 Mar 2022 00:15:01 +1100 Subject: [PATCH] Added webclient Note: Dropbox or any cloud secure storage cannot work. * = your domain web name Only http downloads example without cloud storage, like old http: *.com/ftp/vlc.7z --- Program.cs | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/Program.cs b/Program.cs index 6acb933..d44b97d 100644 --- a/Program.cs +++ b/Program.cs @@ -1,5 +1,6 @@ using System; using System.Threading; +using System.NET; namespace VVCEasy { @@ -141,6 +142,10 @@ namespace VVCEasy if (vlcinstall == "Y") { Console.Title = "Downloading VLC Media Player (custom build of o266player)"; + + using (WebClient web1 = new()) + web1.DownloadFile("", ""); + Console.WriteLine("Sorry, the command is not ready yet..."); Console.ReadLine(); } @@ -171,6 +176,11 @@ namespace VVCEasy { Console.Clear(); Console.Title = "INSTALLING VVDEC WEB PLAYER..."; + Console.WriteLine("Installing VVDec Web Player..."); + + using (WebClient web1 = new()) + web1.DownloadFile("", ""); + Console.WriteLine("Sorry, the command is not ready yet..."); Console.ReadLine(); } @@ -200,17 +210,32 @@ namespace VVCEasy if (installbitmovin1 == "W") { - Console.WriteLine("Installing vvDecPlayer from BitMovin for Windows...\nSorry, the C# console is not ready yet..."); + Console.WriteLine("Installing vvDecPlayer from BitMovin for Windows..."); + + using (WebClient web1 = new()) + web1.DownloadFile("", ""); + + Console.WriteLine("Sorry, the C# console is not ready yet..."); Console.ReadLine(); } else if (installbitmovin1 == "M") { - Console.WriteLine("Installing vvDecPlayer from BitMovin for Mac OS...\nSorry, the C# console is not ready yet..."); + Console.WriteLine("Installing vvDecPlayer from BitMovin for Mac OS..."); + + using (WebClient web1 = new()) + web1.DownloadFile("", ""); + + Console.WriteLine("Sorry, the C# console is not ready yet..."); Console.ReadLine(); } else if (installbitmovin1 == "L") { - Console.WriteLine("Installing vvDecPlayer from BitMovin for Linux...\nSorry, the C# console is not ready yet..."); + Console.WriteLine("Installing vvDecPlayer from BitMovin for Linux..."); + + using (WebClient web1 = new()) + web1.DownloadFile("", ""); + + Console.WriteLine("Sorry, the C# console is not ready yet..."); Console.ReadLine(); } else if (installbitmovin1 == "Back") @@ -235,7 +260,12 @@ namespace VVCEasy if (vtmvlcinstallnow1 == "Y") { Console.Title = "Installing of VLC VTM Plugins by Inter Digital Inc... (Compiled by Martin Eesmaa)"; - Console.WriteLine("Installing of VLC VTM Plugins by Inter Digital Inc... (Compiled by Martin Eesmaa)\nSorry C# is malfunction mode..."); + Console.WriteLine("Installing of VLC VTM Plugins by Inter Digital Inc... (Compiled by Martin Eesmaa)"); + + using (WebClient web1 = new()) + web1.DownloadFile("", ""); + + Console.WriteLine("Sorry C# is malfunction mode..."); Console.ReadLine(); } }