m3u

package
v0.40.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ErrorFindingMusic = "directory %s does not contain music files"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Playlist

type Playlist struct {
	Filename string
	Contents []string
	Hashes   []string
}

func New added in v0.11.0

func New(filename string) (*Playlist, error)

func (*Playlist) AddRelease

func (p *Playlist) AddRelease(root, path string) error

func (*Playlist) Check added in v0.11.0

func (p *Playlist) Check(root string) error

Check all files exist, using root if paths are relative.

func (*Playlist) Contains

func (p *Playlist) Contains(release string) bool

func (*Playlist) GetHashes added in v0.11.0

func (p *Playlist) GetHashes(root string)

GetHashes from all files exist, using root if paths are relative.

func (*Playlist) Save

func (p *Playlist) Save() error

func (*Playlist) String

func (p *Playlist) String() string

func (*Playlist) Update

func (p *Playlist) Update(old, new string)

Jump to

Keyboard shortcuts

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