utils

package
v0.0.0-...-088f321 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) (int64, error)

func FindFirstValidImage

func FindFirstValidImage(dir string) string

func IsValidCoverExt

func IsValidCoverExt(ext string) bool

func IsValidTrackExt

func IsValidTrackExt(ext string) bool

func RunFFprobe

func RunFFprobe(args ...string) ([]byte, error)

func SafeName

func SafeName(name string) (string, error)

Types

type FileResult

type FileResult struct {
	Path   string
	Number int
	Name   string

	Duration int
	Tags     map[string]string
}

func CheckFile

func CheckFile(filepath string) (FileResult, error)

type Info

type Info struct {
	Tags     map[string]string
	Duration int
}

func GetInfo

func GetInfo(filepath string) (Info, error)

type ProbeResult

type ProbeResult struct {
	Artist      string
	AlbumArtist string
	Title       string
	Album       string
	Track       int
	Disc        int
}

Jump to

Keyboard shortcuts

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