Skip to content

Commit

Permalink
Add message reporting on chat download
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Sep 3, 2020
1 parent 4777301 commit 1fbfc13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TwitchDownloaderCore/ChatDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public async Task DownloadAsync(IProgress<ProgressReport> progress, Cancellation

int percent = (int)Math.Floor((latestMessage - videoStart) / videoDuration * 100);
progress.Report(new ProgressReport() { reportType = ReportType.Percent, data = percent });
progress.Report(new ProgressReport() { reportType = ReportType.Message, data = $"Downloading {percent}%" });

cancellationToken.ThrowIfCancellationRequested();

Expand Down

0 comments on commit 1fbfc13

Please sign in to comment.