func (c Client) QueryStashBoxPerformer(ctx context.Context, queryStr string) ([]*models.StashBoxPerformerQueryResult, error) {
	performers, err := c.queryStashBoxPerformer(ctx, queryStr)

	res := []*models.StashBoxPerformerQueryResult{
		{
			Query:   queryStr,
			Results: performers,
		},
	}

	// set the deprecated image field
	for _, p := range res[0].Results {
		if len(p.Images) > 0 {
			p.Image = &p.Images[0]
		}
	}

	return res, err
}
// QueryStashBoxPerformer queries stash-box for performers using a query string.
QueryStashBoxPerformer queries stash-box for performers using a query string.
// QueryStashBoxPerformer queries stash - box for performers using a query string .
func (c Client) QueryStashBoxPerformer(ctx context.Context, queryStr string) ([]*models.StashBoxPerformerQueryResult, error) {
	performers, err := c.queryStashBoxPerformer(ctx, queryStr)
	res := []*models.StashBoxPerformerQueryResult{
		{
			Query:   queryStr,
			Results: performers,
		},
	}
	for _, p := range res[0].Results {
		if len(p.Images) > 0 {
			p.Image = &p.Images[0]
		}
	}
	return res, err
}
func ( c Client ) QueryStashBoxPerformer ( ctx context . Context , queryStr string ) ( [ ] * models . StashBoxPerformerQueryResult , error ) { performers , err := c . queryStashBoxPerformer ( ctx , queryStr ) res := [ ] * models . StashBoxPerformerQueryResult { { Query : queryStr , Results : performers , } , } for _ , p := range res [ 0 ] . Results { if len ( p . Images ) > 0 { p . Image = & p . Images [ 0 ] } } return res , err }
QueryStashBoxPerformer queries stash-box for performers using a query string.
QueryStashBoxPerformer queries stash - box for performers using a query string .
// set the deprecated image field