gem

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: OSL-3.0 Imports: 6 Imported by: 0

README

CBC

Android client

https://play.google.com/store/apps/details?id=ca.cbc.android.cbctv

Create Android device API 23. Install user certificate.

adb shell am start -a android.intent.action.VIEW `
-d https://gem.cbc.ca/the-fall/s02e03

How to create account?

Use Android client

How to get apiKey?

sources\vd\g.java
private static final String loginRadiusProdKey =
"3f4beddd-2061-49b0-ae80-6f1f2ed65b37";

https://github.com/skylot/jadx

X-Forwarded-For

Based on this:

https://github.com/firehol/blocklist-ipsets/blob/master/geolite2_country/country_ca.netset

The largest Canada block is:

99.224.0.0/11

So in MITM Proxy, press O to enter options. Move to modify_headers and press Enter. Then press a to add a new entry:

/~q/X-Forwarded-For/99.224.0.0

Press Esc when finished, then q.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GemCatalog

type GemCatalog struct {
	Content []struct {
		Lineups []struct {
			Items []LineupItem
		}
	}
	SelectedUrl        string
	StructuredMetadata Metadata
}

func (GemCatalog) Item

func (c GemCatalog) Item() (*LineupItem, bool)

func (*GemCatalog) New

func (g *GemCatalog) New(address string) error

type GemProfile

type GemProfile struct {
	Gem struct {
		ClaimsToken string
	}
	Raw []byte
}

func (GemProfile) Media

func (p GemProfile) Media(i *LineupItem) (*MediaService, error)

func (*GemProfile) Unmarshal

func (g *GemProfile) Unmarshal() error

type LineupItem

type LineupItem struct {
	URL              string
	FormattedIdMedia string
}

type LoginToken

type LoginToken struct {
	Access_Token string
}

func (*LoginToken) New

func (t *LoginToken) New(username, password string) error

func (LoginToken) Profile

func (t LoginToken) Profile() (*GemProfile, error)

type MediaService

type MediaService struct {
	Message string
	URL     string
}

type Metadata

type Metadata struct {
	PartOfSeries *struct {
		Name string // The Fall
	}
	PartOfSeason *struct {
		SeasonNumber int
	}
	EpisodeNumber int
	Name          string
	DateCreated   string // 2014-01-01T00:00:00
}

func (Metadata) Episode

func (m Metadata) Episode() (string, bool)

func (Metadata) Owner

func (Metadata) Owner() (string, bool)

func (Metadata) Season

func (m Metadata) Season() (string, bool)

func (Metadata) Show

func (m Metadata) Show() (string, bool)

func (Metadata) Title

func (m Metadata) Title() (string, bool)

func (Metadata) Year

func (m Metadata) Year() (string, bool)

Jump to

Keyboard shortcuts

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