Documentation
¶
Index ¶
- func IsErrMediaNotSupported(err error) bool
- func Subscene() types.Provider
- func TheMovieDB(token string) types.Scraper
- func TheTVDB(key string) types.Scraper
- type APIClient
- func (a *APIClient) Do(req *http.Request) (*http.Response, error)
- func (a *APIClient) Get(url string) (*http.Response, error)
- func (a *APIClient) Head(url string) (*http.Response, error)
- func (a *APIClient) Post(url string, contentType string, body io.Reader) (*http.Response, error)
- func (a *APIClient) PostForm(url string, data url.Values) (*http.Response, error)
- type ErrMediaNotSupported
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrMediaNotSupported ¶ added in v1.0.0
IsErrMediaNotSupported return true if the error dictates taht the media type was not supported by the scraper
func TheMovieDB ¶ added in v1.0.0
TheMovieDB is a scraper for themoviedb.org
Types ¶
type APIClient ¶ added in v1.0.0
APIClient is a http client with rate limiting
func NewAPIClient ¶ added in v1.0.0
NewAPIClient return a new APIClient
type ErrMediaNotSupported ¶ added in v1.0.0
type ErrMediaNotSupported struct {
// contains filtered or unexported fields
}
ErrMediaNotSupported is an error for unsupported media
Click to show internal directories.
Click to hide internal directories.