Skip to content

Commit

Permalink
fix: update streamlink progress parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibbp authored Nov 10, 2024
1 parent d909c78 commit 546d420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func DownloadTwitchVideo(ctx context.Context, video ent.Vod) error {
log.Debug().Str("video_id", video.ID.String()).Msgf("logging streamlink output to %s", logFilePath)

var cmdArgs []string
cmdArgs = append(cmdArgs, fmt.Sprintf("https://twitch.tv/videos/%s", video.ExtID), fmt.Sprintf("%s,best", video.Resolution), "--force-progress", "--force")
cmdArgs = append(cmdArgs, fmt.Sprintf("https://twitch.tv/videos/%s", video.ExtID), fmt.Sprintf("%s,best", video.Resolution), "--progress=force", "--force")

// check if user has twitch token set
// if so, set token in streamlink command
Expand Down Expand Up @@ -151,7 +151,7 @@ func DownloadTwitchLiveVideo(ctx context.Context, video ent.Vod, channel ent.Cha
}

var cmdArgs []string
cmdArgs = append(cmdArgs, streamUrl, fmt.Sprintf("%s,best", video.Resolution), "--force-progress", "--force")
cmdArgs = append(cmdArgs, streamUrl, fmt.Sprintf("%s,best", video.Resolution), "--progress=force", "--force")

// pass proxy header
if proxyHeader != "" {
Expand Down

1 comment on commit 546d420

@Zibbp
Copy link
Owner Author

@Zibbp Zibbp commented on 546d420 Nov 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #532

Please sign in to comment.