From 3457250a09e94502b8c94cc1f62d94a2acb24e8b Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Sun, 14 Jul 2024 21:53:44 -0400 Subject: [PATCH] Make videoEnd exclusive to catch comments sent on last second of the broadcast --- TwitchDownloaderCore/ChatDownloader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwitchDownloaderCore/ChatDownloader.cs b/TwitchDownloaderCore/ChatDownloader.cs index f8857137..a8f24eb6 100644 --- a/TwitchDownloaderCore/ChatDownloader.cs +++ b/TwitchDownloaderCore/ChatDownloader.cs @@ -414,7 +414,7 @@ private async Task> 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>>(connectionCount);