core

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	*scraper.Scraper

	// URLs
	BaseURL        string
	MovieURL       string
	SampleVideoURL string

	// Values
	DefaultPriority float64
	DefaultName     string
	DefaultMaker    string

	// Paths
	GalleryPath       string
	LegacyGalleryPath string
}

func (*Core) Fetch added in v1.2.4

func (core *Core) Fetch(url string) (resp *http.Response, err error)

func (*Core) GetMovieInfoByID

func (core *Core) GetMovieInfoByID(id string) (info *model.MovieInfo, err error)

func (*Core) GetMovieInfoByURL

func (core *Core) GetMovieInfoByURL(rawURL string) (info *model.MovieInfo, err error)

func (*Core) GetMovieReviewsByID added in v1.2.0

func (core *Core) GetMovieReviewsByID(id string) (reviews []*model.MovieReviewDetail, err error)

func (*Core) GetMovieReviewsByURL added in v1.2.0

func (core *Core) GetMovieReviewsByURL(rawURL string) (reviews []*model.MovieReviewDetail, err error)

func (*Core) Init

func (core *Core) Init() *Core

func (*Core) ParseMovieIDFromURL added in v1.1.4

func (core *Core) ParseMovieIDFromURL(rawURL string) (string, error)

Jump to

Keyboard shortcuts

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