filemanager

package
v0.0.0-...-a139f76 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSubtitleFile

func IsSubtitleFile(path string) bool

func IsVideoFile

func IsVideoFile(path string) (bool, error)

Types

type Directory

type Directory struct {
	// contains filtered or unexported fields
}

func ReadDirectory

func ReadDirectory(path string, deep bool) (*Directory, warning.WarningList, error)

func (*Directory) Children

func (d *Directory) Children() []Directory

func (*Directory) Path

func (d *Directory) Path() string

func (*Directory) SubtitleFiles

func (d *Directory) SubtitleFiles() []SubtitleFile

func (*Directory) VideoFiles

func (d *Directory) VideoFiles() []VideoFile

type RawStream

type RawStream struct {
	// contains filtered or unexported fields
}

func NewRawStream

func NewRawStream(filepath string, index int, format subtitle.Format, language language.Tag, title string) *RawStream

func (*RawStream) Filepath

func (s *RawStream) Filepath() string

func (*RawStream) Format

func (s *RawStream) Format() subtitle.Format

func (*RawStream) Index

func (s *RawStream) Index() int

func (*RawStream) Language

func (s *RawStream) Language() language.Tag

func (*RawStream) Title

func (s *RawStream) Title() string

type SubtitleFile

type SubtitleFile struct {
	// contains filtered or unexported fields
}

func (*SubtitleFile) Basename

func (s *SubtitleFile) Basename() string

func (*SubtitleFile) Extension

func (s *SubtitleFile) Extension() string

func (*SubtitleFile) Language

func (s *SubtitleFile) Language() (language.Tag, error)

func (*SubtitleFile) Path

func (s *SubtitleFile) Path() string

type VideoFile

type VideoFile struct {
	// contains filtered or unexported fields
}

func NewVideoFile

func NewVideoFile(path string) *VideoFile

func (*VideoFile) Basename

func (v *VideoFile) Basename() string

func (*VideoFile) DirectoryPath

func (v *VideoFile) DirectoryPath() string

func (*VideoFile) Extension

func (v *VideoFile) Extension() string

func (*VideoFile) Filename

func (v *VideoFile) Filename() string

func (*VideoFile) Filepath

func (v *VideoFile) Filepath() string

func (*VideoFile) RawStreams

func (v *VideoFile) RawStreams() (*[]RawStream, error)

Jump to

Keyboard shortcuts

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