francetv

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName = "francetv"
	WSListURL    = "http://pluzz.webservices.francetelevisions.fr/pluzz/liste/type/replay/nb/%d/debut/0"           // Available show
	WSInfoOeuvre = "http://webservices.francetelevisions.fr/tools/getInfosOeuvre/v2/?catalogue=Pluzz&idDiffusion=" // Show's video link and details
)

Provider constants

Variables

This section is empty.

Functions

func WithGetter

func WithGetter(g getter) func(ftv *FranceTV)

WithGetter inject a getter in FranceTV object instead of normal one

Types

type FranceTV

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

FranceTV structure handles france-tv catalog of shows

func New

func New(conf ...func(ftv *FranceTV)) (*FranceTV, error)

New setup a Show provider for France Télévisions

func (FranceTV) GetShowFileName

func (FranceTV) GetShowFileName(s *providers.Show) string

GetShowFileName return a file name with a path that is compatible with PLEX server:

ShowName/Season NN/ShowName - sNNeMM - Episode title
Show and Episode names are sanitized to avoid problem when saving on the file system

func (FranceTV) GetShowFileNameMatcher

func (FranceTV) GetShowFileNameMatcher(s *providers.Show) string

GetShowFileNameMatcher return a file pattern of this show used for detecting already got episode even when episode or season is different

func (*FranceTV) GetShowInfo

func (ftv *FranceTV) GetShowInfo(s *providers.Show) error

GetShowInfo query the URL from InfoOeuvre web service

func (*FranceTV) GetShowStreamURL

func (ftv *FranceTV) GetShowStreamURL(s *providers.Show) (string, error)

GetShowStreamURL return the show's URL, a m3u8 playlist

func (FranceTV) Name

func (ftv FranceTV) Name() string

Name return the name of the provider

func (*FranceTV) Shows

func (ftv *FranceTV) Shows(mm []*providers.MatchRequest) ([]*providers.Show, error)

Shows return shows that match with matching list.

Jump to

Keyboard shortcuts

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