Documentation ¶
Index ¶
- func ExtractMovieSchema(src io.Reader) (*schema.Movie, error)
- func IsTitleID(title string) bool
- func TitleUrl2CreditsUrl(title string) (string, error)
- type Controller
- 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.
func TitleUrl2CreditsUrl ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(rawurl string) (*Controller, error)
func (*Controller) DefaultLang ¶ added in v0.2.0
func (r *Controller) DefaultLang() *lcconv.LngCntry
Return IMDB's default language (english).
func (*Controller) PreferredLang ¶ added in v0.2.0
func (r *Controller) PreferredLang() *lcconv.LngCntry
Return the language chosen by the user.
func (*Controller) SetOptions ¶
func (r *Controller) SetOptions(flags *cmdline.Flags) error
Parses controller options. Reconfigures the controller after parsing was successful.
type Credits ¶
type Credits struct {
// contains filtered or unexported fields
}
represents "fullcredits" pages https://www.imdb.com/title/$titleID/fullcredits
func (*Credits) NamesByIDCallback ¶
func (r *Credits) NamesByIDCallback(id string) func() ([]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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.