tv

package
v0.0.0-...-dd55568 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeebURL

type BeebURL string

BeebURL represents an Iplayer URL.

type Category

type Category struct {
	Name       string       `json:"category"`
	Programmes []*Programme `json:"programmes"`
}

Category struct represents an Iplayer programme category. It has the name of the category, like "films" or "comedy" and a list of the tv programmes of said category.

func LoadAllCategories

func LoadAllCategories() ([]*Category, error)

func NewCategory

func NewCategory(name string, programmes []*Programme) *Category

NewCategory returns a new Category struct for a given category name and list of programmes.

type IplayerDocument

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

func NewIplayerDocument

func NewIplayerDocument(doc *goquery.Document) *IplayerDocument

type IplayerDocumentResult

type IplayerDocumentResult struct {
	Error error
	// contains filtered or unexported fields
}

type MainCategoryDocument

type MainCategoryDocument struct {
	NextPages []string
	// contains filtered or unexported fields
}

type NextPager

type NextPager interface {
	// contains filtered or unexported methods
}

type Programme

type Programme struct {
	Title     string `json:"title"`
	Subtitle  string `json:"subtitle"`
	Synopsis  string `json:"synopsis"`
	Pid       string `json:"pid"`
	Thumbnail string `json:"thumbnail"`
	URL       string `json:"url"`
	Index     int    `json:"index"`
}

Programme represents an Iplayer TV programme. It consists of the programme's title, subtitle, a short programme description, The Iplayer Programme ID, the url to its thumbnail, and the url to the programme's website.

func (*Programme) String

func (p *Programme) String() string

String returns a string for type Programme, starting with Index, followed by Programme Title and Programme Subtitle.

type Searcher

type Searcher interface {
	// contains filtered or unexported methods
}

type TestHtmlURL

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

type TestMainCategoryDocument

type TestMainCategoryDocument struct {
	NextPages []string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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