channel4

package
v1.52.7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: OSL-3.0 Imports: 7 Imported by: 0

README

Channel 4

How to watch from US

Download MITM Proxy:

https://mitmproxy.org/downloads

Start mitmproxy. Enter the following:

:set modify_headers '/~u vod.stream/X-Forwarded-For/25.0.0.0'

The following instruction is for Firefox, but Chrome should be similar. Open Application Menu and click "Options". Then click "Privacy & Security". Then scroll to "Security", and click "View Certificates". Then click "Authorities". Then click "Import". Find this file:

C:\Users\Steven\.mitmproxy\mitmproxy-ca.pem

and click "Open". Then click "Trust this CA to identify websites". Then click "OK". Then click "OK". Then click "General". Scroll to "Network Settings", and click "Settings". Click "Manual proxy configuration". After "HTTP Proxy", enter:

127.0.0.1

after "Port", enter:

8080

then click "OK". Now browse to a page:

https://channel4.com/programmes/frasier/on-demand/18926-001

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel format.LogLevel

Functions

func ProgramID added in v1.52.4

func ProgramID(addr string) string

channel4.com/programmes/frasier/on-demand/18926-001

Types

type Payload

type Payload struct {
	Message string `json:"message"`
	Token   string `json:"token"`
	Video   struct {
		Type string `json:"type"`
	} `json:"video"`
}

func NewPayload

func NewPayload(token io.Reader) (*Payload, error)

func (Payload) Widevine

func (p Payload) Widevine() (*Widevine, error)

type Stream

type Stream struct {
	VideoProfiles []struct {
		Name    string
		Streams []struct {
			URI string
		}
	}
}

func NewStream added in v1.52.4

func NewStream(id string) (*Stream, error)

func (Stream) Widevine added in v1.52.4

func (s Stream) Widevine() string

type Widevine

type Widevine struct {
	License string
}

func (Widevine) Decrypt

func (w Widevine) Decrypt() (string, error)

Jump to

Keyboard shortcuts

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