app

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Renamers = map[string]renamer{
	"copy":     renamer(copyRenamer),
	"move":     renamer(moveRenamer),
	"symlink":  renamer(symlinkRenamer),
	"hardlink": renamer(hardlinkRenamer),
}

Renamers holds the available renaming actions of the application

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) ExtractMedia added in v1.0.0

func (a *Application) ExtractMedia(m types.MediaReadCloser) error

ExtractMedia reads a media file from a stream performs renaming/copying to its new destination

func (*Application) FindArchives added in v1.0.0

func (a *Application) FindArchives(roots ...string) ([]types.MediaArchive, error)

FindArchives searches through filepaths and finds media archives

func (*Application) FindMedia

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

FindMedia searches for media files

func (*Application) RenameMedia added in v1.0.0

func (a *Application) RenameMedia(list types.LocalMediaList) error

RenameMedia traverses the local media list and renames the media

func (*Application) Scrapers added in v1.0.0

func (a *Application) Scrapers() []types.Scraper

Scrapers returns the list of supported scrapers

Jump to

Keyboard shortcuts

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