core

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 10 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
	SearchURL string

	// Values
	DefaultPriority float64
	DefaultName     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) Init

func (core *Core) Init() *Core

func (*Core) NormalizeMovieID

func (core *Core) NormalizeMovieID(id string) string

func (*Core) NormalizeMovieKeyword

func (core *Core) NormalizeMovieKeyword(keyword string) string

func (*Core) ParseMovieIDFromURL

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

func (*Core) SearchMovie

func (core *Core) 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