madouqu

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name     = "MadouQu"
	Priority = 1000 - 3
)

Variables

This section is empty.

Functions

func ExtractImgSrc

func ExtractImgSrc(src string) string

Types

type MadouQu

type MadouQu struct {
	*scraper.Scraper
}

func New

func New() *MadouQu

func (*MadouQu) GetMovieInfoByID

func (mdq *MadouQu) GetMovieInfoByID(id string) (info *model.MovieInfo, err error)

func (*MadouQu) GetMovieInfoByURL

func (mdq *MadouQu) GetMovieInfoByURL(rawURL string) (info *model.MovieInfo, err error)

func (*MadouQu) NormalizeMovieKeyword

func (mdq *MadouQu) NormalizeMovieKeyword(keyword string) string

func (*MadouQu) ParseMovieIDFromURL

func (mdq *MadouQu) ParseMovieIDFromURL(rawURL string) (string, error)

func (*MadouQu) SearchMovie

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

func (*MadouQu) SetRequestTimeout

func (mdq *MadouQu) SetRequestTimeout(_ time.Duration)

Jump to

Keyboard shortcuts

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