amc

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: OSL-3.0 Imports: 8 Imported by: 0

README

AMC+

try 7 days free

  1. amcplus.com/create
  2. email
  3. password
  4. create account
  5. monthly with ads
  6. continue to payment
  7. name on card
  8. card number
  9. expiration date
  10. cvc
  11. postal code
  12. start free trial

Android

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address added in v1.9.6

type Address struct {
	NID  string
	Path string
}

func (*Address) Set added in v1.9.6

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

func (Address) String added in v1.9.6

func (a Address) String() string

type Authorization added in v1.7.7

type Authorization struct {
	Data []byte
	V    struct {
		Data struct {
			AccessToken  string `json:"access_token"`
			RefreshToken string `json:"refresh_token"`
		}
	}
}

func (Authorization) Content added in v1.7.7

func (a Authorization) Content(path string) (*ContentCompiler, error)

func (*Authorization) Login added in v1.7.7

func (a *Authorization) Login(email, password string) error

func (Authorization) Playback added in v1.7.7

func (a Authorization) Playback(nid string) (*Playback, error)

func (*Authorization) Refresh added in v1.7.7

func (a *Authorization) Refresh() error

func (*Authorization) Unauth added in v1.7.7

func (a *Authorization) Unauth() error

func (*Authorization) Unmarshal added in v1.7.7

func (a *Authorization) Unmarshal() error

type ContentCompiler added in v1.7.7

type ContentCompiler struct {
	Data struct {
		Children []struct {
			Properties json.RawMessage
			Type       string
		}
	}
}

func (ContentCompiler) Video added in v1.7.7

func (c ContentCompiler) Video() (*CurrentVideo, error)

type CurrentVideo added in v1.7.7

type CurrentVideo struct {
	Meta struct {
		Airdate       time.Time // 1996-01-01T00:00:00.000Z
		EpisodeNumber int
		Season        int `json:",string"`
		ShowTitle     string
	}
	Text struct {
		Title string
	}
}

func (CurrentVideo) Episode added in v1.7.7

func (c CurrentVideo) Episode() int

func (CurrentVideo) Season added in v1.7.7

func (c CurrentVideo) Season() int

func (CurrentVideo) Show added in v1.7.7

func (c CurrentVideo) Show() string

func (CurrentVideo) Title added in v1.7.7

func (c CurrentVideo) Title() string

func (CurrentVideo) Year added in v1.7.7

func (c CurrentVideo) Year() int

type DataSource added in v1.7.7

type DataSource struct {
	KeySystems *struct {
		Widevine struct {
			LicenseUrl string `json:"license_url"`
		} `json:"com.widevine.alpha"`
	} `json:"key_systems"`
	Src  string
	Type string
}

type Playback

type Playback struct {
	// contains filtered or unexported fields
}

func (Playback) HttpsDash added in v1.7.7

func (p Playback) HttpsDash() (*DataSource, bool)

func (Playback) RequestHeader added in v1.7.7

func (p Playback) RequestHeader() (http.Header, error)

func (Playback) RequestUrl added in v1.7.7

func (p Playback) RequestUrl() (string, bool)

func (Playback) UnwrapResponse added in v1.8.9

func (Playback) UnwrapResponse(b []byte) ([]byte, error)

func (Playback) WrapRequest added in v1.8.9

func (Playback) WrapRequest(b []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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