sod

package
v0.0.0-...-872e7bf Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ErrImageNotAvailable = errors.New("image not available")

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

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

func (*SOD) NormalizeMovieKeyword

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

func (*SOD) ParseMovieIDFromURL

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
⌂ 换网址