artetv

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithGetter

func WithGetter(g getter) func(p *ArteTV)

WithGetter inject a getter in FranceTV object instead of normal one

Types

type ArteTV

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

ArteTV structure handles arte catalog of shows

func New

func New(conf ...func(p *ArteTV)) (*ArteTV, error)

New setup a Show provider for Arte

func (*ArteTV) GetShowFileName

func (p *ArteTV) 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 (ArteTV) GetShowFileNameMatcher

func (ArteTV) 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 (*ArteTV) GetShowInfo

func (p *ArteTV) GetShowInfo(s *providers.Show) error

GetShowInfo gather show information from dedicated web page. It load the html page of the show to extract availability date used as airdate and production year as season

func (*ArteTV) GetShowStreamURL

func (p *ArteTV) GetShowStreamURL(s *providers.Show) (string, error)

GetShowStreamURL return the show's URL, a mp4 file

func (ArteTV) Name

func (p ArteTV) Name() string

Name return the name of the provider

func (*ArteTV) SetDebug

func (p *ArteTV) SetDebug(b bool)

SetDebug set debug mode

func (*ArteTV) Shows

func (p *ArteTV) Shows(mm []*providers.MatchRequest) ([]*providers.Show, error)

Shows download the shows catalog from the web site.

Jump to

Keyboard shortcuts

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