mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
* Treat empty image input as null * Add validation to models.Date * Allow zero dates in database * Make scene_markers.scene_id non-nullable * Drop scraped_items table * Remove movie/studio checksum * Add migration notes --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
77 lines
2.6 KiB
Go
77 lines
2.6 KiB
Go
package models
|
|
|
|
type ScrapedStudio struct {
|
|
// Set if studio matched
|
|
StoredID *string `json:"stored_id"`
|
|
Name string `json:"name"`
|
|
URL *string `json:"url"`
|
|
Image *string `json:"image"`
|
|
RemoteSiteID *string `json:"remote_site_id"`
|
|
}
|
|
|
|
func (ScrapedStudio) IsScrapedContent() {}
|
|
|
|
// A performer from a scraping operation...
|
|
type ScrapedPerformer struct {
|
|
// Set if performer matched
|
|
StoredID *string `json:"stored_id"`
|
|
Name *string `json:"name"`
|
|
Disambiguation *string `json:"disambiguation"`
|
|
Gender *string `json:"gender"`
|
|
URL *string `json:"url"`
|
|
Twitter *string `json:"twitter"`
|
|
Instagram *string `json:"instagram"`
|
|
Birthdate *string `json:"birthdate"`
|
|
Ethnicity *string `json:"ethnicity"`
|
|
Country *string `json:"country"`
|
|
EyeColor *string `json:"eye_color"`
|
|
Height *string `json:"height"`
|
|
Measurements *string `json:"measurements"`
|
|
FakeTits *string `json:"fake_tits"`
|
|
PenisLength *string `json:"penis_length"`
|
|
Circumcised *string `json:"circumcised"`
|
|
CareerLength *string `json:"career_length"`
|
|
Tattoos *string `json:"tattoos"`
|
|
Piercings *string `json:"piercings"`
|
|
Aliases *string `json:"aliases"`
|
|
Tags []*ScrapedTag `json:"tags"`
|
|
// This should be a base64 encoded data URL
|
|
Image *string `json:"image"`
|
|
Images []string `json:"images"`
|
|
Details *string `json:"details"`
|
|
DeathDate *string `json:"death_date"`
|
|
HairColor *string `json:"hair_color"`
|
|
Weight *string `json:"weight"`
|
|
RemoteSiteID *string `json:"remote_site_id"`
|
|
}
|
|
|
|
func (ScrapedPerformer) IsScrapedContent() {}
|
|
|
|
type ScrapedTag struct {
|
|
// Set if tag matched
|
|
StoredID *string `json:"stored_id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
func (ScrapedTag) IsScrapedContent() {}
|
|
|
|
// A movie from a scraping operation...
|
|
type ScrapedMovie struct {
|
|
StoredID *string `json:"stored_id"`
|
|
Name *string `json:"name"`
|
|
Aliases *string `json:"aliases"`
|
|
Duration *string `json:"duration"`
|
|
Date *string `json:"date"`
|
|
Rating *string `json:"rating"`
|
|
Director *string `json:"director"`
|
|
URL *string `json:"url"`
|
|
Synopsis *string `json:"synopsis"`
|
|
Studio *ScrapedStudio `json:"studio"`
|
|
// This should be a base64 encoded data URL
|
|
FrontImage *string `json:"front_image"`
|
|
// This should be a base64 encoded data URL
|
|
BackImage *string `json:"back_image"`
|
|
}
|
|
|
|
func (ScrapedMovie) IsScrapedContent() {}
|