Documentation ¶
Index ¶
- Variables
- func NewFromDefault() types.App
- func WebAppHandler(path string) http.Handler
- type Application
- func (a *Application) Config() types.Config
- func (a *Application) DownloadSubtitles(media types.LocalMediaList, lang set.Interface) ([]types.LocalSubtitle, error)
- func (a *Application) ExtractMedia(m types.MediaReadCloser) error
- func (a *Application) FindArchives(roots ...string) ([]types.MediaArchive, error)
- func (a *Application) FindMedia(roots ...string) (types.LocalMediaList, error)
- func (a *Application) RenameMedia(list types.LocalMediaList) error
- func (a *Application) Scrapers() []types.Scraper
Constants ¶
This section is empty.
Variables ¶
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
NewFromDefault construct an application using the default config
func WebAppHandler ¶
WebAppHandler serves a single-page web application
Types ¶
type Application ¶
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(media types.LocalMediaList, lang set.Interface) ([]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