From 88d6a48354edc96d7113470d5064928ab19e00a7 Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:31:13 -0400 Subject: [PATCH] Fix clip chats --- TwitchDownloaderWPF/PageChatDownload.xaml.cs | 24 ++++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/TwitchDownloaderWPF/PageChatDownload.xaml.cs b/TwitchDownloaderWPF/PageChatDownload.xaml.cs index 28ffa93d..5820d9bf 100644 --- a/TwitchDownloaderWPF/PageChatDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageChatDownload.xaml.cs @@ -268,18 +268,22 @@ public ChatDownloadOptions GetOptions(string filename) else if (radioCompressionGzip.IsChecked == true) options.Compression = ChatCompression.Gzip; - if (CheckTrimStart.IsChecked == true) + // TODO: Enable trimming clip chats + if (downloadType is DownloadType.Video) { - options.TrimBeginning = true; - TimeSpan start = new TimeSpan((int)numStartHour.Value, (int)numStartMinute.Value, (int)numStartSecond.Value); - options.TrimBeginningTime = (int)start.TotalSeconds; - } + if (CheckTrimStart.IsChecked == true) + { + options.TrimBeginning = true; + TimeSpan start = new TimeSpan((int)numStartHour.Value, (int)numStartMinute.Value, (int)numStartSecond.Value); + options.TrimBeginningTime = (int)start.TotalSeconds; + } - if (CheckTrimEnd.IsChecked == true) - { - options.TrimEnding = true; - TimeSpan end = new TimeSpan((int)numEndHour.Value, (int)numEndMinute.Value, (int)numEndSecond.Value); - options.TrimEndingTime = (int)end.TotalSeconds; + if (CheckTrimEnd.IsChecked == true) + { + options.TrimEnding = true; + TimeSpan end = new TimeSpan((int)numEndHour.Value, (int)numEndMinute.Value, (int)numEndSecond.Value); + options.TrimEndingTime = (int)end.TotalSeconds; + } } if (radioTimestampUTC.IsChecked == true)