avbase

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name     = "AVBASE"
	Priority = 1000 - 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AVBase

type AVBase struct {
	*scraper.Scraper
	// contains filtered or unexported fields
}

func New

func New() *AVBase

func (*AVBase) GetBuildID

func (ab *AVBase) GetBuildID() (string, error)

func (*AVBase) GetMovieInfoByID

func (ab *AVBase) GetMovieInfoByID(id string) (info *model.MovieInfo, err error)

func (*AVBase) GetMovieInfoByURL

func (ab *AVBase) GetMovieInfoByURL(rawURL string) (info *model.MovieInfo, err error)

func (*AVBase) JoinPrefixID added in v1.1.2

func (ab *AVBase) JoinPrefixID(prefix, workID string) string

func (*AVBase) NormalizeID

func (ab *AVBase) NormalizeID(id string) string

func (*AVBase) NormalizeKeyword

func (ab *AVBase) NormalizeKeyword(keyword string) string

func (*AVBase) ParseIDFromURL

func (ab *AVBase) ParseIDFromURL(rawURL string) (string, error)

func (*AVBase) SearchMovie

func (ab *AVBase) SearchMovie(keyword string) (results []*model.MovieSearchResult, err error)

type Actor

type Actor struct {
	ID       int    `json:"id"`
	Name     string `json:"name"`
	ImageURL string `json:"image_url"`
}

type Work

type Work struct {
	ID      int    `json:"id"`
	Prefix  string `json:"prefix"`
	WorkID  string `json:"work_id"`
	Title   string `json:"title"`
	MinDate string `json:"min_date"`
	Genres  []struct {
		ID   int    `json:"id"`
		Name string `json:"name"`
	} `json:"genres"`
	Products []struct {
		ID           int    `json:"id"`
		ProductID    string `json:"product_id"`
		URL          string `json:"url"`
		Title        string `json:"title"`
		Source       string `json:"source"`
		ImageURL     string `json:"image_url"`
		ThumbnailURL string `json:"thumbnail_url"`
		Date         string `json:"date"`
		Maker        struct {
			Name string `json:"name"`
		} `json:"maker"`
		Label struct {
			Name string `json:"name"`
		} `json:"label"`
		Series struct {
			Name string `json:"name"`
		} `json:"series"`
		SampleImageURLS []struct {
			S string `json:"s"`
			L string `json:"l"`
		} `json:"sample_image_urls"`
		ItemInfo struct {
			Description string `json:"description"`
			Price       string `json:"price"`
			Volume      string `json:"volume"`
		} `json:"iteminfo"`
	} `json:"products"`
	Actors []Actor `json:"actors"`
	Casts  []struct {
		Actor Actor `json:"actor"`
	} `json:"casts"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL