diff --git a/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs b/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs index 831d562d6..0e7131f91 100644 --- a/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs +++ b/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs @@ -133,7 +133,7 @@ namespace Ombi.Schedule.Jobs.Ombi } Ctx.WriteLine("Starting Download"); - await DownloadAsync(download.Url, zipDir); + await DownloadAsync(download.Url, zipDir, c); Ctx.WriteLine("Finished Download"); } catch (Exception e) @@ -195,10 +195,15 @@ namespace Ombi.Schedule.Jobs.Ombi } } - public static async Task DownloadAsync(string requestUri, string filename) + public static async Task DownloadAsync(string requestUri, string filename, PerformContext ctx) { using (var client = new WebClient()) { + ctx.WriteProgressBar(); + client.DownloadProgressChanged += (s, e) => + { + ctx.WriteProgressBar(e.ProgressPercentage); + }; await client.DownloadFileTaskAsync(requestUri, filename); } } diff --git a/src/Ombi/ClientApp/app/login/login.component.html b/src/Ombi/ClientApp/app/login/login.component.html index 9458b07fc..3d8d08d22 100644 --- a/src/Ombi/ClientApp/app/login/login.component.html +++ b/src/Ombi/ClientApp/app/login/login.component.html @@ -9,7 +9,7 @@ include the remember me checkbox