Feature: Add Various Scraper Fields (#6249)

* Support aliases in stashbox studio query
---------
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
Gykes
2025-11-12 15:14:04 -08:00
committed by GitHub
parent b2c8f09585
commit a08d2e258a
9 changed files with 105 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ package stashbox
import (
"context"
"strings"
"github.com/google/uuid"
"github.com/stashapp/stash/pkg/models"
@@ -63,8 +64,11 @@ func studioFragmentToScrapedStudio(s graphql.StudioFragment) *models.ScrapedStud
images = append(images, image.URL)
}
aliases := strings.Join(s.Aliases, ", ")
st := &models.ScrapedStudio{
Name: s.Name,
Aliases: &aliases,
Images: images,
RemoteSiteID: &s.ID,
}