Skip to content

Commit

Permalink
Actually send the data
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerX committed Mar 15, 2024
1 parent 202216c commit 6e6b6ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/vidispine/vsapi/placeholder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package vsapi

import (
"bytes"
"fmt"
"net/url"
)

Expand Down Expand Up @@ -95,7 +96,7 @@ func (c *Client) CreateThumbnails(itemID string, width, height int) (string, err
SetHeader("content-type", "application/xml").
SetHeader("accept", "application/json").
SetResult(&JobDocument{}).
Post("/item/" + url.PathEscape(itemID) + "/thumbnail?createThumbnails=true")
Post(fmt.Sprintf("/item/%s/thumbnail?createThumbnails=true&thumbnailWidth=%d&thumbnailHeight=%d", url.PathEscape(itemID), width, height))

if err != nil {
return "", err
Expand Down

0 comments on commit 6e6b6ff

Please sign in to comment.