diff --git a/.vs/youtube-downloader/v16/.suo b/.vs/youtube-downloader/v16/.suo index d8a90b5..de06058 100644 Binary files a/.vs/youtube-downloader/v16/.suo and b/.vs/youtube-downloader/v16/.suo differ diff --git a/Program.cs b/Program.cs index 1b5442c..3db3953 100644 --- a/Program.cs +++ b/Program.cs @@ -17,8 +17,9 @@ namespace youtube_downloader class Program { - static void Main() + static void Main(string[] arg) { + Thread t = new Thread(new ThreadStart(() => { Server.Functions.Downloader.DL.DownloadThread().GetAwaiter().GetResult(); })); @@ -191,7 +192,15 @@ namespace youtube_downloader rp.AsFile(rq, path); }); - HttpServer.ListenAsync(3250, CancellationToken.None, Route.OnHttpRequestAsync).Wait(); + if (arg.Length > 0) + { + HttpServer.ListenAsync(arg[0], CancellationToken.None, Route.OnHttpRequestAsync).Wait(); + + } + else + { + HttpServer.ListenAsync(3250, CancellationToken.None, Route.OnHttpRequestAsync).Wait(); + } } diff --git a/bin/Debug/youtube-downloader.exe b/bin/Debug/youtube-downloader.exe index 117d686..e64658f 100644 Binary files a/bin/Debug/youtube-downloader.exe and b/bin/Debug/youtube-downloader.exe differ diff --git a/bin/Debug/youtube-downloader.pdb b/bin/Debug/youtube-downloader.pdb index 36f6a4b..cb123ea 100644 Binary files a/bin/Debug/youtube-downloader.pdb and b/bin/Debug/youtube-downloader.pdb differ diff --git a/obj/Debug/youtube-downloader.exe b/obj/Debug/youtube-downloader.exe index 117d686..e64658f 100644 Binary files a/obj/Debug/youtube-downloader.exe and b/obj/Debug/youtube-downloader.exe differ diff --git a/obj/Debug/youtube-downloader.pdb b/obj/Debug/youtube-downloader.pdb index 36f6a4b..cb123ea 100644 Binary files a/obj/Debug/youtube-downloader.pdb and b/obj/Debug/youtube-downloader.pdb differ