mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
* Added Studio Code and Photographer to Galleries * Fix gallery display on mobile * Fixed potential panic when scraping with a bad configuration --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
32 lines
1,010 B
Go
32 lines
1,010 B
Go
package scraper
|
|
|
|
import "github.com/stashapp/stash/pkg/models"
|
|
|
|
type ScrapedGallery struct {
|
|
Title *string `json:"title"`
|
|
Code *string `json:"code"`
|
|
Details *string `json:"details"`
|
|
Photographer *string `json:"photographer"`
|
|
URLs []string `json:"urls"`
|
|
Date *string `json:"date"`
|
|
Studio *models.ScrapedStudio `json:"studio"`
|
|
Tags []*models.ScrapedTag `json:"tags"`
|
|
Performers []*models.ScrapedPerformer `json:"performers"`
|
|
|
|
// deprecated
|
|
URL *string `json:"url"`
|
|
}
|
|
|
|
func (ScrapedGallery) IsScrapedContent() {}
|
|
|
|
type ScrapedGalleryInput struct {
|
|
Title *string `json:"title"`
|
|
Code *string `json:"code"`
|
|
Details *string `json:"details"`
|
|
Photographer *string `json:"photographer"`
|
|
URLs []string `json:"urls"`
|
|
Date *string `json:"date"`
|
|
|
|
// deprecated
|
|
URL *string `json:"url"`
|
|
}
|