From 22018fe06e90389dec12d691f302e005a51d3c17 Mon Sep 17 00:00:00 2001
From: Scrub <72096833+ScrubN@users.noreply.github.com>
Date: Tue, 6 Aug 2024 14:20:42 -0400
Subject: [PATCH] Reduce trim minute/second maximum from 60 to 59 (#1184)
---
TwitchDownloaderWPF/PageChatDownload.xaml | 8 ++++----
TwitchDownloaderWPF/PageChatDownload.xaml.cs | 4 ++--
TwitchDownloaderWPF/PageChatUpdate.xaml | 8 ++++----
TwitchDownloaderWPF/PageVodDownload.xaml | 8 ++++----
4 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/TwitchDownloaderWPF/PageChatDownload.xaml b/TwitchDownloaderWPF/PageChatDownload.xaml
index df247e61..31c8a792 100644
--- a/TwitchDownloaderWPF/PageChatDownload.xaml
+++ b/TwitchDownloaderWPF/PageChatDownload.xaml
@@ -97,15 +97,15 @@
-
-
+
+
-
-
+
+
diff --git a/TwitchDownloaderWPF/PageChatDownload.xaml.cs b/TwitchDownloaderWPF/PageChatDownload.xaml.cs
index 43be5369..d654a034 100644
--- a/TwitchDownloaderWPF/PageChatDownload.xaml.cs
+++ b/TwitchDownloaderWPF/PageChatDownload.xaml.cs
@@ -149,7 +149,7 @@ private async Task GetVideoInfo()
game = videoInfo.data.video.game?.displayName ?? Translations.Strings.UnknownGame;
numStartHour.Maximum = (int)vodLength.TotalHours;
- numStartMinute.Maximum = 60;
+ numStartMinute.Maximum = 59;
var urlTimeCodeMatch = TwitchRegex.UrlTimeCode.Match(textUrl.Text);
if (urlTimeCodeMatch.Success)
{
@@ -168,7 +168,7 @@ private async Task GetVideoInfo()
numEndHour.Maximum = (int)vodLength.TotalHours;
numEndHour.Value = (int)vodLength.TotalHours;
- numEndMinute.Maximum = 60;
+ numEndMinute.Maximum = 59;
numEndMinute.Value = vodLength.Minutes;
numEndSecond.Value = vodLength.Seconds;
labelLength.Text = vodLength.ToString("c");
diff --git a/TwitchDownloaderWPF/PageChatUpdate.xaml b/TwitchDownloaderWPF/PageChatUpdate.xaml
index 8aaff93e..b43466e9 100644
--- a/TwitchDownloaderWPF/PageChatUpdate.xaml
+++ b/TwitchDownloaderWPF/PageChatUpdate.xaml
@@ -97,15 +97,15 @@
-
-
+
+
-
-
+
+
diff --git a/TwitchDownloaderWPF/PageVodDownload.xaml b/TwitchDownloaderWPF/PageVodDownload.xaml
index 1cec8a43..0648eb89 100644
--- a/TwitchDownloaderWPF/PageVodDownload.xaml
+++ b/TwitchDownloaderWPF/PageVodDownload.xaml
@@ -85,15 +85,15 @@
-
-
+
+
-
-
+
+