app

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg types.Config) types.App

New returns a new application from the cli context

func NewFromDefault added in v0.2.0

func NewFromDefault() types.App

NewFromDefault construct an application using the default config

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) Config added in v0.2.0

func (a *Application) Config() types.Config

Config returns the configuration for the application

func (*Application) DownloadSubtitles

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

DownloadSubtitles downloads subtitles for a whole list of mediafiles for every langauge in the language set

func (*Application) FindMedia

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

FindMedia searches for media files

Jump to

Keyboard shortcuts

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