From 5b37d5b62987ebfb909f3d3b3d0130248ab5ce15 Mon Sep 17 00:00:00 2001 From: Zibbp Date: Thu, 30 May 2024 02:01:35 +0000 Subject: [PATCH] fix(activities): only search for tmp chat download path when finding process to kill --- internal/activities/video.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/activities/video.go b/internal/activities/video.go index aff419cf..3e8acbfc 100644 --- a/internal/activities/video.go +++ b/internal/activities/video.go @@ -707,7 +707,7 @@ func KillTwitchLiveChatDownload(ctx context.Context, input dto.ArchiveVideoInput // find pid of chat_downloader to kill // search for channel and unique temporary download path to ensure we do not kill a new instance - cmd := osExec.Command("pgrep", "-f", fmt.Sprintf("chat_downloader https://twitch.tv/%s --output %s", input.Channel.Name, input.Vod.TmpLiveChatDownloadPath)) + cmd := osExec.Command("pgrep", "-f", input.Vod.TmpLiveChatDownloadPath) out, err := cmd.Output() if err != nil { return temporal.NewApplicationError(err.Error(), "", nil)