ctv

package
v1.9.8 Latest Latest
Warning

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

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

README

ctv

android

https://play.google.com/store/apps/details?id=ca.ctv.ctvgo

> play -i ca.ctv.ctvgo
details[8] = 0 USD
details[13][1][4] = 6.65.1
details[13][1][16] = Sep 10, 2024
details[13][1][17] = APK
details[13][1][82][1][1] = 8.0 and up
details[15][18] = http://www.bell.ca/privacy
downloads = 2.72 million
name = CTV
size = 39.62 megabyte
version code = 60000337

movie

title	"The Girl with the Dragon Tattoo (2011)"
broadcastDate	"2011-12-20T10:00:00Z"

https://ctv.ca/movies/the-girl-with-the-dragon-tattoo-2011

episode

title	"Friends"
seasonNumber	2
episodeNumber	21
title	"The One With the Bullies"
broadcastDate	"1996-04-25T04:00:00Z"

https://ctv.ca/shows/friends/the-one-with-the-bullies-s2e21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Path string
}

func (Address) Resolve

func (a Address) Resolve() (*ResolvePath, error)

func (*Address) String

func (a *Address) String() string

type AxisContent

type AxisContent struct {
	AxisId                int64
	AxisPlaybackLanguages []struct {
		DestinationCode string
	}
}

func (*AxisContent) Manifest

func (a *AxisContent) Manifest(media *MediaContent) (string, error)

wikipedia.org/wiki/Geo-blocking

func (*AxisContent) Media

func (a *AxisContent) Media() (*MediaContent, error)

type Date

type Date struct {
	Time time.Time
}

func (*Date) MarshalText

func (d *Date) MarshalText() ([]byte, error)

func (*Date) UnmarshalText

func (d *Date) UnmarshalText(text []byte) error

type MediaContent

type MediaContent struct {
	BroadcastDate   Date
	ContentPackages []struct {
		Id int64
	}
	Episode int
	Media   struct {
		Name string
		Type string
	}
	Name   string
	Season struct {
		Number int
	}
	Raw []byte `json:"-"`
}

func (*MediaContent) Unmarshal

func (m *MediaContent) Unmarshal() error

type Namer

type Namer struct {
	Media *MediaContent
}

func (Namer) Episode

func (n Namer) Episode() int

func (Namer) Season

func (n Namer) Season() int

func (Namer) Show

func (n Namer) Show() string

func (Namer) Title

func (n Namer) Title() string

func (Namer) Year

func (n Namer) Year() int

type Poster

type Poster struct{}

func (Poster) RequestHeader

func (Poster) RequestHeader() (http.Header, error)

func (Poster) RequestUrl

func (Poster) RequestUrl() (string, bool)

func (Poster) UnwrapResponse

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

func (Poster) WrapRequest

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

type ResolvePath

type ResolvePath struct {
	Id                   string
	FirstPlayableContent *struct {
		Id string
	}
}

func (*ResolvePath) Axis

func (r *ResolvePath) Axis() (*AxisContent, error)

Jump to

Keyboard shortcuts

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