Skip to content

Commit afcfefa

Browse files
committed
Fix chat download options for clips
1 parent ef308ad commit afcfefa

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

TwitchDownloaderCore/ChatRenderer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private void RenderVideo(ChatRenderOptions renderOptions, Queue<TwitchComment> f
187187
{
188188
int startSeconds = (int)Math.Floor(chatJson.video.start);
189189
int firstCommentSeconds = (int)Math.Floor(chatJson.comments.First().content_offset_seconds);
190-
videoStart = startSeconds < firstCommentSeconds ? startSeconds : firstCommentSeconds;
190+
videoStart = startSeconds;
191191
duration = (int)Math.Ceiling(chatJson.video.end) - videoStart;
192192
}
193193
else

TwitchDownloaderWPF/PageChatDownload.xaml.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ private void SetEnabled(bool isEnabled, bool onlyCrop)
6262
numEndHour.IsEnabled = isEnabled;
6363
numEndMinute.IsEnabled = isEnabled;
6464
numEndSecond.IsEnabled = isEnabled;
65-
checkEmbed.IsEnabled = isEnabled;
66-
radioRelative.IsEnabled = isEnabled;
67-
radioUTC.IsEnabled = isEnabled;
68-
radioNone.IsEnabled = isEnabled;
69-
65+
7066
if (!onlyCrop)
7167
{
68+
radioRelative.IsEnabled = isEnabled;
69+
radioUTC.IsEnabled = isEnabled;
70+
radioNone.IsEnabled = isEnabled;
71+
checkEmbed.IsEnabled = isEnabled;
7272
btnDownload.IsEnabled = isEnabled;
7373
radioJson.IsEnabled = isEnabled;
7474
radioText.IsEnabled = isEnabled;

TwitchDownloaderWPF/Properties/AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.39.9.0")]
54+
[assembly: AssemblyVersion("1.39.10.0")]
5555
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)