Documentation
¶
Index ¶
- type Core
- func (core *Core) GetMovieInfoByID(id string) (info *model.MovieInfo, err error)
- func (core *Core) GetMovieInfoByURL(rawURL string) (info *model.MovieInfo, err error)
- func (core *Core) Init() *Core
- func (core *Core) NormalizeMovieID(id string) string
- func (core *Core) NormalizeMovieKeyword(keyword string) string
- func (core *Core) ParseMovieIDFromURL(rawURL string) (string, error)
- func (core *Core) SearchMovie(keyword string) (results []*model.MovieSearchResult, err error)
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) GetMovieInfoByURL ¶
func (*Core) NormalizeMovieID ¶
func (*Core) NormalizeMovieKeyword ¶
func (*Core) ParseMovieIDFromURL ¶
func (*Core) SearchMovie ¶
func (core *Core) SearchMovie(keyword string) (results []*model.MovieSearchResult, err error)
Click to show internal directories.
Click to hide internal directories.