core

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 15 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

	// Values
	DefaultPriority int
	DefaultName     string
	DefaultMaker    string
}

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