app

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: GPL-3.0 Imports: 27 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 NewFromDefault added in v0.2.0

func NewFromDefault() types.App

NewFromDefault construct an application using the default config

Types

type Application

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

Application is an configuration instance of the application

func New

func New(cfg types.Config) *Application

New returns a new application from the cli context

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(input types.LocalMediaList, lang set.Interface, c chan<- *notify.Entry) ([]types.LocalSubtitle, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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