Documentation
¶
Overview ¶
Package subsource implements the SubSource subtitle provider. SubSource has a REST API at api.subsource.net. Requires an API key. Supports both movies and TV episodes via IMDB ID search. Rate limits: 60/min, 1800/hour, 7200/day.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FlexInt ¶
type FlexInt int
FlexInt is a JSON type that unmarshals both string and number representations to an int value. SubSource's API returns releaseYear as either a string or number. Uses lenient semantics: errors default to zero (year=0 means "unknown").
func (*FlexInt) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler for FlexInt.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the SubSource API client.
func (*Provider) Download ¶
Download fetches the subtitle content for the given search result. SubSource returns archives; the subtitle file is extracted automatically.
func (*Provider) Name ¶
func (p *Provider) Name() api.ProviderID
Name returns the provider identifier for SubSource.