justwatch

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: OSL-3.0 Imports: 10 Imported by: 0

README

justWatch

https://play.google.com/store/apps/details?id=com.justwatch.justwatch

Create Android 6 device. Install user certificate.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnglishLocales = LocaleStates{}/* 139 elements not displayed */

Functions

func Monetization

func Monetization(node OfferNode) bool

func Url

func Url(node OfferNode) bool

Types

type Address

type Address struct {
	Path string
}

func (*Address) Content

func (a *Address) Content() (*ContentUrls, error)

func (*Address) Set

func (a *Address) Set(s string) error

func (*Address) String

func (a *Address) String() string

type ContentUrls

type ContentUrls struct {
	HrefLangTags []LangTag `json:"href_lang_tags"`
}

type LangTag

type LangTag struct {
	Locale string // es_AR
	Href   string // /ar/pelicula/mulholland-drive
}

func (*LangTag) Offers

func (t *LangTag) Offers(state *LocaleState) ([]OfferNode, error)

type LocaleState

type LocaleState struct {
	FullLocale  string
	Country     string
	CountryName string
}

keep order

type LocaleStates

type LocaleStates []LocaleState

func (LocaleStates) Locale

func (s LocaleStates) Locale(tag *LangTag) (*LocaleState, bool)

func (*LocaleStates) LocaleError

func (*LocaleStates) LocaleError() error

func (*LocaleStates) New

func (s *LocaleStates) New(language string) error

type OfferGroup

type OfferGroup struct {
	Count        int64
	Country      []string
	Monetization string
	Url          string
}

type OfferGroups

type OfferGroups []*OfferGroup

func (*OfferGroups) Add

func (o *OfferGroups) Add(node *OfferNode, state *LocaleState)

func (OfferGroups) String

func (o OfferGroups) String() string

type OfferNode

type OfferNode struct {
	ElementCount     int64
	MonetizationType string
	StandardWebUrl   WebUrl
}

`presentationType` 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 WebUrl

type WebUrl struct {
	String string
}

func (*WebUrl) UnmarshalText

func (w *WebUrl) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL