Documentation
¶
Index ¶
- func ExtractMovieSchema(src io.Reader) (*schema.Movie, error)
- func IsTitleID(title string) bool
- type Controller
- func (r *Controller) CreditsURL() string
- func (r *Controller) DefaultLang() *lcconv.LngCntry
- func (r *Controller) KeywordsURL() string
- func (r *Controller) PreferredLang() *lcconv.LngCntry
- func (r *Controller) Scrape() (*tags.Movie, error)
- func (r *Controller) SetOptions(flags *cmdline.Flags) error
- func (r *Controller) TitleURL() string
- type Credits
- type Keyword
- type Title
- func (r *Title) Actors() ([]tags.Actor, error)
- func (r *Title) DateReleased() (tags.UniLingual, error)
- func (r *Title) Directors() ([]tags.UniLingual, error)
- func (r *Title) Genres() ([]tags.MultiLingual, error)
- func (r *Title) LawRating() (tags.UniLingual, error)
- func (r *Title) Synopsis() ([]tags.MultiLingual, error)
- func (r *Title) Title() ([]tags.MultiLingual, error)
- func (r *Title) Writers() ([]tags.UniLingual, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractMovieSchema ¶
Scrapes the json-ld data from an imdb page and loads it into a movie schema object.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(rawurl string) (*Controller, error)
func (*Controller) CreditsURL ¶ added in v0.3.6
func (r *Controller) CreditsURL() string
Return the controller's credits page URL.
func (*Controller) DefaultLang ¶ added in v0.2.0
func (r *Controller) DefaultLang() *lcconv.LngCntry
Return IMDB's default language. At the moment this is hard-coded to english.
func (*Controller) KeywordsURL ¶ added in v0.3.6
func (r *Controller) KeywordsURL() string
Return the controller's keywords page URL.
func (*Controller) PreferredLang ¶ added in v0.2.0
func (r *Controller) PreferredLang() *lcconv.LngCntry
Return the most significant language chosen by the user if one was set. Return the default language otherwise.
func (*Controller) SetOptions ¶
func (r *Controller) SetOptions(flags *cmdline.Flags) error
Parses controller options. Reconfigures the controller after parsing was successful.
func (*Controller) TitleURL ¶ added in v0.3.6
func (r *Controller) TitleURL() string
Return the controller's title URL.
type Credits ¶
type Credits struct {
// contains filtered or unexported fields
}
represents "fullcredits" pages https://www.imdb.com/title/$titleID/fullcredits
func (*Credits) Directors ¶ added in v0.3.5
func (r *Credits) Directors() ([]tags.UniLingual, error)
type Title ¶
type Title struct {
// contains filtered or unexported fields
}
represents title pages https://www.imdb.com/title/$titleID/
func (*Title) DateReleased ¶ added in v0.1.1
func (r *Title) DateReleased() (tags.UniLingual, error)
Click to show internal directories.
Click to hide internal directories.