artetv

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResult added in v0.2.0

type APIResult struct {
	Datakey    Datakey `json:"datakey"`
	PageNumber int     `json:"pageNumber"`
	NextPage   string  `json:"nextPage"`
	Data       []Data  `json:"data"`
}

type AlternativeLanguages added in v0.2.0

type AlternativeLanguages struct {
	Code  string `json:"code"`
	Label string `json:"label"`
	Page  string `json:"page"`
	URL   string `json:"url"`
	Title string `json:"title"`
}

type ArteTV

type ArteTV struct {
	// contains filtered or unexported fields
}

ArteTV structure handles arte catalog of shows

func New

func New() (*ArteTV, error)

New setup a Show provider for Arte

func (*ArteTV) Configure added in v0.8.0

func (p *ArteTV) Configure(fns ...providers.ProviderConfigFn)

func (*ArteTV) GetMediaDetails added in v0.7.0

func (p *ArteTV) GetMediaDetails(ctx context.Context, m *media.Media) error

GetMediaDetails return the media's URL, a mp4 file

func (*ArteTV) MediaList added in v0.7.0

func (p *ArteTV) MediaList(ctx context.Context, mm []*matcher.MatchRequest) chan *media.Media

Shows download the shows catalog from the web site.

func (ArteTV) Name

func (p ArteTV) Name() string

Name return the name of the provider

type Availability added in v0.13.0

type Availability struct {
	End          string `json:"end"`
	Label        string `json:"label"`
	Start        tsUTC  `json:"start"`
	Type         string `json:"type"`
	UpcomingDate tsUTC  `json:"upcomingDate"`
}

type Code added in v0.2.0

type Code struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

type Credits added in v0.13.0

type Credits struct {
	Code   string   `json:"code"`
	Label  string   `json:"label"`
	Values []string `json:"values"`
}

type Data added in v0.2.0

type Data struct {
	ID               string           `json:"id"`
	Type             string           `json:"type"`
	Kind             Kind             `json:"kind"`
	ProgramID        string           `json:"programId"`
	URL              string           `json:"url"`
	Deeplink         string           `json:"deeplink"`
	Title            string           `json:"title"`
	Description      string           `json:"description"`
	ShortDescription string           `json:"shortDescription"`
	FullDescription  string           `json:"fullDescription"`
	Subtitle         string           `json:"subtitle"`
	Images           map[string]Image `json:"images"`
	Stickers         []Stickers       `json:"stickers"`
	ChildrenCount    interface{}      `json:"childrenCount"`
	Geoblocking      interface{}      `json:"geoblocking"`
	Duration         int              `json:"duration"`
	Player           Player           `json:"player"`
	Availability     Availability     `json:"availability"`
	BroadcastDates   []tsUTC          `json:"broadcastDates"`
	Credits          []Credits        `json:"credits"`
	AgeRating        int              `json:"ageRating"`
}

type Datakey added in v0.2.0

type Datakey struct {
	ID    string            `json:"id"`
	Param map[string]string `json:"param"`
}

type DisplayOptions added in v0.2.0

type DisplayOptions struct {
	ZoneLayout   string      `json:"zoneLayout"`
	ItemTemplate string      `json:"itemTemplate"`
	Theme        interface{} `json:"theme"`
}

type Image added in v0.2.0

type Image struct {
	Caption     string        `json:"caption"`
	Resolutions []Resolutions `json:"resolutions"`
	BlurURL     string        `json:"blurUrl"`
}

type Images added in v0.2.0

type Images map[string]Image

type InitialProgram added in v0.13.0

type InitialProgram struct {
	// AlternateLanguages []AlternateLanguages `json:"alternateLanguages"`
	Error  string `json:"error"`
	Locale string `json:"locale"`
	// Navbar Navbar `json:"navbar"`
	Pages Pages `json:"pages"`
}

type Kind added in v0.2.0

type Kind struct {
	Code         string `json:"code"`
	Label        string `json:"label"`
	IsCollection bool   `json:"isCollection"`
}

type Page added in v0.13.0

type Page struct {
	ID          string  `json:"id"`
	Page        string  `json:"page"`
	Language    string  `json:"language"`
	Support     string  `json:"support"`
	Level       int     `json:"level"`
	URL         string  `json:"url"`
	Deeplink    string  `json:"deeplink"`
	Title       string  `json:"title"`
	Description string  `json:"description"`
	Slug        string  `json:"slug"`
	Zones       []Zones `json:"zones"`
}

type Pages added in v0.13.0

type Pages struct {
	Loading     bool            `json:"loading"`
	CurrentCode string          `json:"currentCode"`
	List        map[string]Page `json:"list"`
}

type Player added in v0.13.0

type Player struct {
	Config        string      `json:"config"`
	Playlist      string      `json:"playlist"`
	OrangeVideoID interface{} `json:"orangeVideoId"`
	FreeVideoID   interface{} `json:"freeVideoId"`
}

type Resolutions added in v0.2.0

type Resolutions struct {
	URL string `json:"url"`
	W   int    `json:"w"`
	H   int    `json:"h"`
}

type SearchAPI added in v0.2.0

type SearchAPI struct {
	ID                   string                 `json:"id"`
	Page                 string                 `json:"page"`
	Language             string                 `json:"language"`
	Support              string                 `json:"support"`
	Level                int                    `json:"level"`
	Parent               interface{}            `json:"parent"`
	AlternativeLanguages []AlternativeLanguages `json:"alternativeLanguages"`
	URL                  string                 `json:"url"`
	Deeplink             string                 `json:"deeplink"`
	Title                string                 `json:"title"`
	Description          string                 `json:"description"`
	Slug                 string                 `json:"slug"`
	Zones                []Zones                `json:"zones"`
}

type Stickers added in v0.2.0

type Stickers struct {
	Code  string `json:"code"`
	Label string `json:"label"`
}

type StreamInfo added in v0.2.0

type StreamInfo struct {
	ID                  string `json:"id"`
	Quality             string `json:"quality"`
	Width               int    `json:"width"`
	Height              int    `json:"height"`
	MediaType           string `json:"mediaType"`
	MimeType            string `json:"mimeType"`
	Bitrate             int    `json:"bitrate"`
	URL                 string `json:"url"`
	VersionProg         int    `json:"versionProg"`
	VersionCode         string `json:"versionCode"`
	VersionLibelle      string `json:"versionLibelle"`
	VersionShortLibelle string `json:"versionShortLibelle"`
}

type VSR added in v0.2.0

type VSR map[string]StreamInfo

type VTU added in v0.2.0

type VTU struct {
	IUR string `json:"IUR"`
}

type VideoJSONPlayer added in v0.2.0

type VideoJSONPlayer struct {
	VID                  string   `json:"VID"`
	VPI                  string   `json:"VPI"`
	VideoDurationSeconds int      `json:"videoDurationSeconds"`
	VideoIsoLang         string   `json:"videoIsoLang"`
	VTY                  string   `json:"VTY"`
	VTX                  string   `json:"VTX"`
	VTI                  string   `json:"VTI"`
	VDU                  int      `json:"VDU"`
	TcStartFrom          int      `json:"tc_start_from"`
	Autostart            bool     `json:"autostart"`
	LiveStreamRights     bool     `json:"liveStreamRights"`
	VGB                  string   `json:"VGB"`
	VRA                  tsPlayer `json:"VRA"`
	VRU                  tsPlayer `json:"VRU"`
	VAD                  bool     `json:"VAD"`
	VideoWarning         bool     `json:"videoWarning"`
	VTU                  VTU      `json:"VTU"`
	VTR                  string   `json:"VTR"`
	VUP                  string   `json:"VUP"`
	V7T                  string   `json:"V7T"`
	VDE                  string   `json:"VDE"`
	Postroll             string   `json:"postroll"`
	VSR                  VSR      `json:"VSR"`
	// Tracking             Tracking       `json:"tracking"`
	Platform       string `json:"platform"`
	VideoPlayerURL string `json:"videoPlayerUrl"`
	CaseProgram    string `json:"caseProgram"`
	// Categories           []Categories   `json:"categories"`
	// Category             Category       `json:"category"`
	// Subcategory          Subcategory    `json:"subcategory"`
	Language         string        `json:"language"`
	ProgramID        string        `json:"programId"`
	Genre            string        `json:"genre"`
	MainPlatformCode string        `json:"mainPlatformCode"`
	VSO              string        `json:"VSO"`
	Kind             string        `json:"kind"`
	KindLabel        string        `json:"kindLabel"`
	Collections      []interface{} `json:"collections"`
	ArteClub         bool          `json:"arteClub"`
	ProgramType      string        `json:"programType"`
	ParentProgramID  string        `json:"parentProgramId"`
	Markings         []interface{} `json:"markings"`
	// Adtech           Adtech        `json:"adtech"`
	// EStat            EStat         `json:"eStat"`
	// Smart            Smart         `json:"smart"`
	Illico        bool `json:"illico"`
	EnablePreroll bool `json:"enablePreroll"`
}

type Zones added in v0.2.0

type Zones struct {
	ID             string         `json:"id"`
	Code           Code           `json:"code"`
	Title          string         `json:"title"`
	Description    interface{}    `json:"description"`
	DisplayOptions DisplayOptions `json:"displayOptions"`
	Link           interface{}    `json:"link"`
	PageNumber     int            `json:"pageNumber"`
	NextPage       interface{}    `json:"nextPage"`
	Data           []Data         `json:"data"`
}

Jump to

Keyboard shortcuts

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