ctv

package
v1.9.4 Latest Latest
Warning

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

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

README

ctv

ctv.ca/movies/the-girl-with-the-dragon-tattoo-2011
justwatch.com/ca/movie/the-girl-with-the-dragon-tattoo

justwatch.com/ca/movie/baby-driver
justwatch.com/ca/movie/ex-machina
justwatch.com/ca/movie/source-code
justwatch.com/ca/movie/talladega-nights-the-ballad-of-ricky-bobby

android

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

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

4 geo

https://capi.9c9media.com/destinations/ctvcomedy_hub/platforms/desktop/playback/contents/1730820/contentPackages/6073155/manifest.mpd?action=reference&ssl=true&filter=fe&mca=false&uhd=false&mcv=false&hd=true&tpt=true&mta=true&stt=false

  • input
    • ContentPackages
    • axisId
    • destinationCode

5

https://u2.video.9c9media.com/video/v1/174756/dash/widevine/zbest-01000110/manifest.mpd

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AxisContent

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

func (AxisContent) Manifest

func (a AxisContent) Manifest(m *MediaContent) (*MediaManifest, error)

wikipedia.org/wiki/Geo-blocking

func (AxisContent) Media

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

type Date added in v1.9.0

type Date struct {
	T time.Time
}

func (Date) MarshalText added in v1.9.0

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

func (*Date) UnmarshalText added in v1.9.0

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
	}
}

type MediaManifest

type MediaManifest struct {
	M   *MediaContent
	URL string
}

func (MediaManifest) Episode

func (m MediaManifest) Episode() int

func (MediaManifest) Marshal

func (m MediaManifest) Marshal() ([]byte, error)

func (MediaManifest) Season

func (m MediaManifest) Season() int

func (MediaManifest) Show

func (m MediaManifest) Show() string

func (MediaManifest) Title

func (m MediaManifest) Title() string

func (*MediaManifest) Unmarshal

func (m *MediaManifest) Unmarshal(text []byte) error

func (MediaManifest) Year

func (m MediaManifest) Year() int

type Path

type Path string

func (Path) Resolve

func (p Path) Resolve() (*ResolvePath, error)

func (*Path) Set

func (p *Path) Set(s string) error

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

func (Path) String

func (p Path) String() string

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