Skip to content

Commit

Permalink
Show highlighted messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Mar 3, 2020
1 parent e9c96ad commit ccad2d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions TwitchDownloaderWPF/PageChatRender.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,11 @@ private void BackgroundRenderManager_DoWork(object sender, DoWorkEventArgs e)
{
if (comment.source != "chat")
continue;
if (comment.message.user_notice_params != null && (comment.message.user_notice_params.msg_id != null && comment.message.user_notice_params.msg_id != ""))
continue;
if (comment.message.user_notice_params != null && comment.message.user_notice_params.msg_id != null)
{
if (comment.message.user_notice_params.msg_id != "highlighted-message" && comment.message.user_notice_params.msg_id != "")
continue;
}

string userName = comment.commenter.display_name.ToString();
int default_x = 2;
Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/PageVodDownload.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private void BackgroundDownloadManager_DoWork(object sender, DoWorkEventArgs e)
Task.WaitAll(info);
double seekTime = options.crop_begin;
double seekDuration = info.Result.Duration.TotalSeconds - seekTime - options.crop_end;
Task<IConversionResult> conversionResult = Conversion.New().Start(String.Format("-y -i \"{0}\" -ss {1} -analyzeduration {2} -t {3} -acodec copy -vcodec copy \"{4}\"", Path.Combine(downloadFolder, "output.ts"), seekTime.ToString(), int.MaxValue, seekDuration.ToString(), outputConvert));
Task<IConversionResult> conversionResult = Conversion.New().Start(String.Format("-y -i \"{0}\" -ss {1} -analyzeduration {2} -t {3} -avoid_negative_ts make_zero -vcodec copy \"{4}\"", Path.Combine(downloadFolder, "output.ts"), seekTime.ToString(), int.MaxValue, seekDuration.ToString(), outputConvert));
Task.WaitAll(conversionResult);
if (Directory.Exists(downloadFolder))
DeleteDirectory(downloadFolder);
Expand Down

0 comments on commit ccad2d9

Please sign in to comment.