epinfo

package
v0.0.0-...-cff79f3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllEpisodesInfo

func AllEpisodesInfo(pageURL string) map[string][]EpisodeInfo

AllEpisodesInfo returns a map of all series, if exist, and their episodes of a given BBC iPlayer URL. There is no guarantee that the episodes are sorted. Fetched from top to bottom of the page. It depends on the BBC iPlayer web page how the episodes are presented.

func SeriesEpisodes

func SeriesEpisodes(pageURL string, ch chan []EpisodeInfo)

SeriesEpisodes return all episodes found on a given url

func SeriesURLs

func SeriesURLs(pageURL string) map[string]string

SeriesURLs returns all links to series web pages

Types

type EpisodeInfo

type EpisodeInfo struct {
	Label  string
	Series string
	URL    string
}

EpisodeInfo struct holds info about an episode

Jump to

Keyboard shortcuts

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