Skip to content

Commit

Permalink
Merge pull request #365 from Zibbp/fixes-2024-02-08-p2
Browse files Browse the repository at this point in the history
fix: add comments
  • Loading branch information
Zibbp authored Feb 9, 2024
2 parents fe579f5 + 23f79ee commit 5a6ada2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ func DownloadTwitchLiveVideo(ctx context.Context, v *ent.Vod, ch *ent.Channel, l
log.Debug().Msgf("streamlink live args: %v", cmdArgs)
log.Debug().Msgf("running: streamlink %s", strings.Join(cmdArgs, " "))

// Start chat download workflow if liveChatWorkflowId is set (chat is being archived)
if liveChatWorkflowId != "" {
// Notify chat download that video download is about to start
log.Debug().Msg("notifying chat download that video download is about to start")
Expand Down
2 changes: 1 addition & 1 deletion internal/workflows/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ func DownloadTwitchLiveVideoWorkflow(ctx workflow.Context, input dto.ArchiveVide
return workflowErrorHandler(err, input, "download-video")
}

// kill live chat download
// kill live chat download if chat is being archived
if input.Queue.ChatProcessing {
err = workflow.ExecuteActivity(ctx, activities.KillTwitchLiveChatDownload, input).Get(ctx, nil)
if err != nil {
Expand Down

0 comments on commit 5a6ada2

Please sign in to comment.