package justwatch
import "154.pages.dev/api/justwatch"
Index ¶
- type Country_Codes
- type Details
- type Lang_Tag
- func (t Lang_Tag) Country_Code() string
- func (t Lang_Tag) Language() string
- func (t Lang_Tag) Variables() Variables
- type Offers
- func (o Offers) Add(country_code string, detail *Details)
- func (o Offers) Stream() Offers
- func (o Offers) Text() (string, error)
- type URLs
- type Variables
Types ¶
type Country_Codes ¶
type Country_Codes map[string]struct{}
type Details ¶
type Details struct { Data struct { URL struct { Node struct { Offers []struct { Monetization_Type string `json:"monetizationType"` Presentation_Type string `json:"presentationType"` Standard_Web_URL string `json:"standardWebURL"` } } } } }
I am including `presentationType` to differentiate the different options, but the data seems to be incorrect in some cases. For example, JustWatch reports this as SD: fetchtv.com.au/movie/details/19285 when the site itself reports as HD.
type Lang_Tag ¶
func (Lang_Tag) Country_Code ¶
func (Lang_Tag) Language ¶
func (Lang_Tag) Variables ¶
type Offers ¶
type Offers map[string]map[string]Country_Codes
map[monetizationType]map[standardWebURL]Country_Codes
func (Offers) Add ¶
func (Offers) Stream ¶
func (Offers) Text ¶
lets match Variables type
type URLs ¶
type URLs struct { Href_Lang_Tags []Lang_Tag }
func New_URLs ¶
type Variables ¶
func (Variables) Details ¶
func (Variables) Text ¶
cant use encoding.TextMarshaler because we are JSON marshalling this
Source Files ¶
justwatch.go offers.go
Directories ¶
Path | Synopsis |
---|---|
justwatch/justwatch |
- Version
- v1.1.9 (latest)
- Published
- Jul 10, 2023
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 2 weeks ago –
Tools for package owners.