Documentation
¶
Index ¶
- func CompareJSON(a interface{}, b interface{}) bool
- func SaveMappingsFile(filePath string, mappings *Mappings) error
- func SavePerformerFile(filePath string, performer *Performer) error
- func SaveSceneFile(filePath string, scene *Scene) error
- func SaveScrapedFile(filePath string, scrapedItems []ScrapedItem) error
- func SaveStudioFile(filePath string, studio *Studio) error
- type Mappings
- type NameMapping
- type PathMapping
- type Performer
- type Scene
- type SceneFile
- type SceneMarker
- type ScrapedItem
- type Studio
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareJSON ¶
func CompareJSON(a interface{}, b interface{}) bool
func SaveMappingsFile ¶
func SavePerformerFile ¶
func SaveSceneFile ¶
func SaveScrapedFile ¶
func SaveScrapedFile(filePath string, scrapedItems []ScrapedItem) error
func SaveStudioFile ¶
Types ¶
type Mappings ¶
type Mappings struct {
Performers []NameMapping `json:"performers"`
Studios []NameMapping `json:"studios"`
Galleries []PathMapping `json:"galleries"`
Scenes []PathMapping `json:"scenes"`
}
func LoadMappingsFile ¶
type NameMapping ¶
type PathMapping ¶
type Performer ¶
type Performer struct {
Name string `json:"name,omitempty"`
URL string `json:"url,omitempty"`
Twitter string `json:"twitter,omitempty"`
Instagram string `json:"instagram,omitempty"`
Birthdate string `json:"birthdate,omitempty"`
Ethnicity string `json:"ethnicity,omitempty"`
Country string `json:"country,omitempty"`
EyeColor string `json:"eye_color,omitempty"`
Height string `json:"height,omitempty"`
Measurements string `json:"measurements,omitempty"`
FakeTits string `json:"fake_tits,omitempty"`
CareerLength string `json:"career_length,omitempty"`
Tattoos string `json:"tattoos,omitempty"`
Piercings string `json:"piercings,omitempty"`
Aliases string `json:"aliases,omitempty"`
Favorite bool `json:"favorite,omitempty"`
Image string `json:"image,omitempty"`
CreatedAt models.JSONTime `json:"created_at,omitempty"`
UpdatedAt models.JSONTime `json:"updated_at,omitempty"`
}
func LoadPerformerFile ¶
type Scene ¶
type Scene struct {
Title string `json:"title,omitempty"`
Studio string `json:"studio,omitempty"`
URL string `json:"url,omitempty"`
Date string `json:"date,omitempty"`
Rating int `json:"rating,omitempty"`
Details string `json:"details,omitempty"`
Gallery string `json:"gallery,omitempty"`
Performers []string `json:"performers,omitempty"`
Tags []string `json:"tags,omitempty"`
Markers []SceneMarker `json:"markers,omitempty"`
File *SceneFile `json:"file,omitempty"`
Cover string `json:"cover,omitempty"`
CreatedAt models.JSONTime `json:"created_at,omitempty"`
UpdatedAt models.JSONTime `json:"updated_at,omitempty"`
}
func LoadSceneFile ¶
type SceneMarker ¶
type SceneMarker struct {
Title string `json:"title,omitempty"`
Seconds string `json:"seconds,omitempty"`
PrimaryTag string `json:"primary_tag,omitempty"`
Tags []string `json:"tags,omitempty"`
CreatedAt models.JSONTime `json:"created_at,omitempty"`
UpdatedAt models.JSONTime `json:"updated_at,omitempty"`
}
type ScrapedItem ¶
type ScrapedItem struct {
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
URL string `json:"url,omitempty"`
Date string `json:"date,omitempty"`
Rating string `json:"rating,omitempty"`
Tags string `json:"tags,omitempty"`
Models string `json:"models,omitempty"`
Episode int `json:"episode,omitempty"`
GalleryFilename string `json:"gallery_filename,omitempty"`
GalleryURL string `json:"gallery_url,omitempty"`
VideoFilename string `json:"video_filename,omitempty"`
VideoURL string `json:"video_url,omitempty"`
Studio string `json:"studio,omitempty"`
UpdatedAt models.JSONTime `json:"updated_at,omitempty"`
}
func LoadScrapedFile ¶
func LoadScrapedFile(filePath string) ([]ScrapedItem, error)
Click to show internal directories.
Click to hide internal directories.