metadata

package
v0.0.0-...-3e0d747 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: LGPL-2.1 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultExcludeFields = []string{
	`_filename`,
	`description`,
	`dislike_count`,
	`formats`,
	`http_headers`,
	`like_count`,
	`thumbnails`,
	`url`,
	`view_count`,
}
View Source
var FFProbeCommandArguments = []string{
	`-v`, `quiet`,
	`-show_format`,
	`-print_format`, `json`,
	`-show_streams`,
	`{source}`,
}
View Source
var FFProbeCommandName = `ffprobe`
View Source
var FFProbeOmitFields = []string{
	`format.filename`,
}
View Source
var FileModeFlags = map[string]os.FileMode{
	`symlink`:   os.ModeSymlink,
	`device`:    os.ModeDevice,
	`pipe`:      os.ModeNamedPipe,
	`socket`:    os.ModeSocket,
	`character`: os.ModeCharDevice,
}
View Source
var RegexpPatterns []*regexp.Regexp

Functions

func GetChecksumPass

func GetChecksumPass() int

func GetGeneralFileType

func GetGeneralFileType(filename string) string

func IsFinalizePass

func IsFinalizePass(pass int) bool

func SetupMimeTypes

func SetupMimeTypes()

Types

type AudioLoader

type AudioLoader struct {
	Loader
	// contains filtered or unexported fields
}

func (AudioLoader) CanHandle

func (self AudioLoader) CanHandle(name string) Loader

func (AudioLoader) LoadMetadata

func (self AudioLoader) LoadMetadata(name string) (map[string]interface{}, error)

type FileLoader

type FileLoader struct {
	Loader
}

func (*FileLoader) CanHandle

func (self *FileLoader) CanHandle(_ string) Loader

func (*FileLoader) LoadMetadata

func (self *FileLoader) LoadMetadata(name string) (map[string]interface{}, error)

type ImageLoader

type ImageLoader struct {
	Loader
}

func (ImageLoader) CanHandle

func (self ImageLoader) CanHandle(_ string) bool

func (ImageLoader) LoadMetadata

func (self ImageLoader) LoadMetadata(name string) (map[string]interface{}, error)

type Loader

type Loader interface {
	CanHandle(string) Loader
	LoadMetadata(string) (map[string]interface{}, error)
}

func GetLoadersForFile

func GetLoadersForFile(name string, pass int) []Loader

type LoaderGroup

type LoaderGroup struct {
	Pass     int
	Checksum bool
	Finalize bool
	Loaders  []Loader
}

func GetLoaderGroupForPass

func GetLoaderGroupForPass(pass int) *LoaderGroup

type LoaderSet

type LoaderSet []LoaderGroup

func GetLoaders

func GetLoaders() LoaderSet

func (LoaderSet) Passes

func (self LoaderSet) Passes() (passes []int)

type MediaLoader

type MediaLoader struct {
	Loader
	// contains filtered or unexported fields
}

func (*MediaLoader) CanHandle

func (self *MediaLoader) CanHandle(name string) Loader

func (*MediaLoader) LoadMetadata

func (self *MediaLoader) LoadMetadata(name string) (map[string]interface{}, error)

type RegexLoader

type RegexLoader struct {
	Loader
}

func (*RegexLoader) CanHandle

func (self *RegexLoader) CanHandle(name string) Loader

func (*RegexLoader) LoadMetadata

func (self *RegexLoader) LoadMetadata(name string) (map[string]interface{}, error)

type VideoLoader

type VideoLoader struct {
	Loader
}

func (*VideoLoader) CanHandle

func (self *VideoLoader) CanHandle(filename string) Loader

func (*VideoLoader) LoadMetadata

func (self *VideoLoader) LoadMetadata(name string) (map[string]interface{}, error)

type YTDLLoader

type YTDLLoader struct {
	Loader
	ExcludeFields []string
	// contains filtered or unexported fields
}

func (*YTDLLoader) CanHandle

func (self *YTDLLoader) CanHandle(name string) Loader

func (*YTDLLoader) LoadMetadata

func (self *YTDLLoader) LoadMetadata(name string) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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