application

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(context *cli.Context) types.App

func WebAppHandler

func WebAppHandler(path string) http.Handler

WebAppHandler serves a single-page web application

Types

type Application

type Application struct {
	types.Provider
	*http.ServeMux
	// contains filtered or unexported fields
}

Application is an configuration instance of the application

func (*Application) Context

func (a *Application) Context() *cli.Context

Context returns the CLI context of the application (e.g. flags, args ect.)

func (*Application) DownloadSubtitles

func (a *Application) DownloadSubtitles(media types.LocalMediaList, lang set.Interface, out io.Writer) (int, error)

DownloadSubtitles downloads subtitles for a whole list of mediafiles for every langauge in the language set. Any output is written to the ourpur writer

func (*Application) FindMedia

func (a *Application) FindMedia(roots ...string) (types.LocalMediaList, error)

FindMedia searches for media files

func (*Application) Languages

func (a *Application) Languages() set.Interface

Jump to

Keyboard shortcuts

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