Skip to content

Commit

Permalink
Fix framerate parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jybp committed Mar 2, 2024
1 parent d299fbc commit 1ee750c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions twitch/twitch.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ type ClipVideo struct {
Value string `json:"value"`
} `json:"playbackAccessToken"`
Qualities []struct {
FrameRate int `json:"frameRate"`
Quality string `json:"quality"`
SourceURL string `json:"sourceURL"`
FrameRate float64 `json:"frameRate"`
Quality string `json:"quality"`
SourceURL string `json:"sourceURL"`
} `json:"videoQualities"`
}

Expand Down
2 changes: 1 addition & 1 deletion twitchdl_clip.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/pkg/errors"
)

const clipQualityFramerateFormat = "%sp%d"
const clipQualityFramerateFormat = "%sp%.f"

func downloadClip(ctx context.Context, client *http.Client, clientID, id, quality string) (io.ReadCloser, error) {
api := twitch.New(client, clientID)
Expand Down

0 comments on commit 1ee750c

Please sign in to comment.