amc

package
v1.10.9 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: OSL-3.0 Imports: 8 Imported by: 0

README

AMC+

try 7 days free

  1. amcplus.com/create
  2. email
    • mail.tm
  3. password
  4. create account
  5. monthly premium
  6. continue to payment
  7. name on card
  8. card number
  9. expiration date
  10. cvc
  11. postal code
  12. state
  13. agree & start free trial

com.amcplus.amcfullepisodes

APK advertises SDK version 21, but needs version 25 to actually work

create Android 7.1 device, install system certificate

GET https://gw.cds.amcn.com/content-compiler-cr/api/v1/content/amcn/amcplus/type/season-episodes/id/1010638 HTTP/1.1
X-AMCN-NETWORK: amcplus
X-AMCN-PLATFORM: android
X-AMCN-TENANT: amcn
Authorization: Bearer eyJraWQiOiJwcm9kLTEiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...

com.amcplus.amcandroidtv

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BcJwt

func BcJwt(header http.Header) string

Types

type Client

type Client struct {
	Data struct {
		AccessToken  string `json:"access_token"`
		RefreshToken string `json:"refresh_token"`
	}
}

func (*Client) Login

func (c *Client) Login(email, password string) error

func (*Client) Playback

func (c *Client) Playback(id int) ([]DataSource, http.Header, error)

func (*Client) Refresh

func (c *Client) Refresh() error

func (*Client) SeasonEpisodes

func (c *Client) SeasonEpisodes(id int) (*Node, error)

func (*Client) SeriesDetail

func (c *Client) SeriesDetail(id int) (*Node, error)

func (*Client) Unauth

func (c *Client) Unauth() error

type Dash

type Dash struct {
	Body []byte
	Url  *url.URL
}

type DataSource

type DataSource struct {
	KeySystems struct {
		ComWidevineAlpha *struct {
			LicenseUrl string `json:"license_url"`
		} `json:"com.widevine.alpha"`
	} `json:"key_systems"`
	Src  string // URL to the MPD manifest
	Type string // e.g., "application/dash+xml"
}

func GetDash

func GetDash(sources []DataSource) (*DataSource, error)

func (*DataSource) Dash

func (d *DataSource) Dash() (*Dash, error)

func (*DataSource) Widevine

func (d *DataSource) Widevine(bcJwt string, data []byte) ([]byte, error)

type Metadata

type Metadata struct {
	EpisodeNumber int
	Nid           int
	Title         string
}

func (*Metadata) String

func (m *Metadata) String() string

type Node

type Node struct {
	Type       string
	Children   []Node
	Properties struct {
		ManifestType string
		Metadata     *Metadata
		Text         *struct {
			Title struct {
				Title string
			}
		}
	}
}

func (*Node) ExtractEpisodes

func (n *Node) ExtractEpisodes() ([]*Metadata, error)

func (*Node) ExtractSeasons

func (n *Node) ExtractSeasons() ([]*Metadata, error)

Jump to

Keyboard shortcuts

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