diff --git a/TwitchDownloaderCore/VideoPlatforms/Kick/Downloaders/KickChatDownloader.cs b/TwitchDownloaderCore/VideoPlatforms/Kick/Downloaders/KickChatDownloader.cs index ab02bdac..cbd270a1 100644 --- a/TwitchDownloaderCore/VideoPlatforms/Kick/Downloaders/KickChatDownloader.cs +++ b/TwitchDownloaderCore/VideoPlatforms/Kick/Downloaders/KickChatDownloader.cs @@ -97,7 +97,7 @@ private async Task> DownloadSection(int streamerId, DateTime video comments.EnsureCapacity(Math.Min(0, comments.Capacity + convertedComments.Count)); foreach (var comment in convertedComments) { - if (latestMessage < videoEnd && comment.content_offset_seconds > videoStart) + if (latestMessage < videoEnd && comment.content_offset_seconds >= videoStart) comments.Add(comment); latestMessage = comment.content_offset_seconds; @@ -305,7 +305,7 @@ public async Task DownloadAsync(CancellationToken cancellationToken) chatRoot.video.game = game; videoDuration = videoEnd - videoStart; - int downloadChunks = Math.Max(1, (int)videoDuration); + int downloadChunks = Math.Max(1, (int)videoDuration / 5); var tasks = new List>>>(); var percentages = new int[downloadChunks]; diff --git a/TwitchDownloaderWPF/MainWindow.xaml.cs b/TwitchDownloaderWPF/MainWindow.xaml.cs index cb2ac28e..1272e7b7 100644 --- a/TwitchDownloaderWPF/MainWindow.xaml.cs +++ b/TwitchDownloaderWPF/MainWindow.xaml.cs @@ -22,12 +22,6 @@ public partial class MainWindow : Window public static PageChatRender pageChatRender = new PageChatRender(); public static PageQueue pageQueue = new PageQueue(); - [DllImport("Kernel32")] - public static extern void AllocConsole(); - - [DllImport("Kernel32")] - public static extern void FreeConsole(); - public MainWindow() { InitializeComponent(); @@ -102,7 +96,6 @@ private async void Window_Loaded(object sender, RoutedEventArgs e) Version currentVersion = new Version("1.53.2"); Title = $"Twitch Downloader v{currentVersion}"; AutoUpdater.InstalledVersion = currentVersion; - AllocConsole(); #if !DEBUG if (AppContext.BaseDirectory.StartsWith(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile))) {