mgstage

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name     = "MGS"
	Priority = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MGS

type MGS struct {
	*scraper.Scraper
}

func New

func New() *MGS

func (*MGS) GetMovieInfoByID

func (mgs *MGS) GetMovieInfoByID(id string) (info *model.MovieInfo, err error)

func (*MGS) GetMovieInfoByURL

func (mgs *MGS) GetMovieInfoByURL(rawURL string) (info *model.MovieInfo, err error)

func (*MGS) GetMovieReviewsByID added in v1.2.0

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

func (*MGS) GetMovieReviewsByURL added in v1.2.0

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

func (*MGS) NormalizeMovieID added in v1.1.4

func (mgs *MGS) NormalizeMovieID(id string) string

func (*MGS) NormalizeMovieKeyword added in v1.1.4

func (mgs *MGS) NormalizeMovieKeyword(keyword string) string

func (*MGS) ParseMovieIDFromURL added in v1.1.4

func (mgs *MGS) ParseMovieIDFromURL(rawURL string) (string, error)

func (*MGS) SearchMovie

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

Jump to

Keyboard shortcuts

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