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