This commit is contained in:
Demetria Lovato 2021-06-28 09:42:57 -07:00
parent 6de81f7fcd
commit 0aae4f51ab
6 changed files with 11 additions and 2 deletions

Binary file not shown.

View File

@ -17,8 +17,9 @@ namespace youtube_downloader
class Program class Program
{ {
static void Main() static void Main(string[] arg)
{ {
Thread t = new Thread(new ThreadStart(() => { Thread t = new Thread(new ThreadStart(() => {
Server.Functions.Downloader.DL.DownloadThread().GetAwaiter().GetResult(); Server.Functions.Downloader.DL.DownloadThread().GetAwaiter().GetResult();
})); }));
@ -191,7 +192,15 @@ namespace youtube_downloader
rp.AsFile(rq, path); 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();
}
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.