Documentation
¶
Index ¶
- Variables
- func GetChecksumPass() int
- func GetGeneralFileType(filename string) string
- func IsFinalizePass(pass int) bool
- func SetupMimeTypes()
- type AudioLoader
- type FileLoader
- type ImageLoader
- type Loader
- type LoaderGroup
- type LoaderSet
- type MediaLoader
- type RegexLoader
- type VideoLoader
- type YTDLLoader
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 IsFinalizePass ¶
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 ¶
type LoaderGroup ¶
func GetLoaderGroupForPass ¶
func GetLoaderGroupForPass(pass int) *LoaderGroup
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 ¶
func (*YTDLLoader) CanHandle ¶
func (self *YTDLLoader) CanHandle(name string) Loader
func (*YTDLLoader) LoadMetadata ¶
func (self *YTDLLoader) LoadMetadata(name string) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.