Skip to content

Commit

Permalink
Make videoEnd exclusive to catch comments sent on last second of the …
Browse files Browse the repository at this point in the history
…broadcast
  • Loading branch information
ScrubN committed Jul 15, 2024
1 parent f26df1c commit 3457250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchDownloaderCore/ChatDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ private async Task<List<Comment>> DownloadComments(CancellationToken cancellatio
_progress.SetTemplateStatus("Downloading {0}%", 0);

var videoStart = (int)Math.Floor(video.start);
var videoEnd = (int)Math.Ceiling(video.end);
var videoEnd = (int)Math.Ceiling(video.end) + 1; // Exclusive end
var videoDuration = videoEnd - videoStart;

var downloadTasks = new List<Task<List<Comment>>>(connectionCount);
Expand Down

0 comments on commit 3457250

Please sign in to comment.