sod

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

Documentation

Index

Constants

View Source
const (
	Name     = "SOD"
	Priority = 1000 - 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SOD

type SOD struct {
	*fetch.Fetcher
	*scraper.Scraper
}

SOD needs `Referer` header when request to view images and videos.

func New

func New() *SOD

func (*SOD) GetMovieInfoByID

func (sod *SOD) GetMovieInfoByID(id string) (info *model.MovieInfo, err error)

func (*SOD) GetMovieInfoByURL

func (sod *SOD) GetMovieInfoByURL(rawURL string) (info *model.MovieInfo, err error)

func (*SOD) NormalizeMovieID added in v1.1.4

func (sod *SOD) NormalizeMovieID(id string) string

func (*SOD) NormalizeMovieKeyword added in v1.1.4

func (sod *SOD) NormalizeMovieKeyword(keyword string) string

func (*SOD) ParseMovieIDFromURL added in v1.1.4

func (sod *SOD) ParseMovieIDFromURL(rawURL string) (string, error)

func (*SOD) SearchMovie

func (sod *SOD) 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