Skip to content

Commit

Permalink
Fix chat download options for clips
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Jun 25, 2021
1 parent ef308ad commit afcfefa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion TwitchDownloaderCore/ChatRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private void RenderVideo(ChatRenderOptions renderOptions, Queue<TwitchComment> f
{
int startSeconds = (int)Math.Floor(chatJson.video.start);
int firstCommentSeconds = (int)Math.Floor(chatJson.comments.First().content_offset_seconds);
videoStart = startSeconds < firstCommentSeconds ? startSeconds : firstCommentSeconds;
videoStart = startSeconds;
duration = (int)Math.Ceiling(chatJson.video.end) - videoStart;
}
else
Expand Down
10 changes: 5 additions & 5 deletions TwitchDownloaderWPF/PageChatDownload.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ private void SetEnabled(bool isEnabled, bool onlyCrop)
numEndHour.IsEnabled = isEnabled;
numEndMinute.IsEnabled = isEnabled;
numEndSecond.IsEnabled = isEnabled;
checkEmbed.IsEnabled = isEnabled;
radioRelative.IsEnabled = isEnabled;
radioUTC.IsEnabled = isEnabled;
radioNone.IsEnabled = isEnabled;


if (!onlyCrop)
{
radioRelative.IsEnabled = isEnabled;
radioUTC.IsEnabled = isEnabled;
radioNone.IsEnabled = isEnabled;
checkEmbed.IsEnabled = isEnabled;
btnDownload.IsEnabled = isEnabled;
radioJson.IsEnabled = isEnabled;
radioText.IsEnabled = isEnabled;
Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.39.9.0")]
[assembly: AssemblyVersion("1.39.10.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

0 comments on commit afcfefa

Please sign in to comment.