tagger

package
v0.0.0-...-89e46eb Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	Path  string
	Cover string

	Album  string `json:"album"`
	Artist string `json:"artist"`
	Year   int    `json:"year"`
	Genre  string `json:"genre"`
	Tracks []*Track
	// contains filtered or unexported fields
}

func NewAlbum

func NewAlbum(track *Track) *Album

func (*Album) Compare

func (album *Album) Compare(newAlbum *Album)

func (*Album) Copy

func (album *Album) Copy(newAlbum *Album)

func (*Album) SavePicture

func (album *Album) SavePicture() error

type Collection

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

func LoadCollection

func LoadCollection(path string) (*Collection, error)

func Scan

func Scan(dir string) *Collection

func (*Collection) Albums

func (collection *Collection) Albums() []string

func (*Collection) GetAlbum

func (collection *Collection) GetAlbum(key string) *Album

func (*Collection) Save

func (collection *Collection) Save(path string) error

type InfosAlbum

type InfosAlbum struct {
	Path   string
	Cover  string
	Tracks []*InfosTrack
}

type InfosTrack

type InfosTrack struct {
	Id   string
	File string
}

type MetaAlbum

type MetaAlbum struct {
	Album  string `json:"album"`
	Artist string `json:"artist"`
	Year   int    `json:"year"`
	Genre  string `json:"genre"`
	Tracks map[string]string
}

type MetaCollection

type MetaCollection struct {
	Metadata map[string]*MetaAlbum  `json:"metadata"`
	Infos    map[string]*InfosAlbum `json:"infos"`
}

type Track

type Track struct {
	Id       string
	File     string
	Filename string
	Track    int    `json:"track"`
	Title    string `json:"title"`
	// contains filtered or unexported fields
}

func NewTrack

func NewTrack(filename string, path string) *Track

func (*Track) Save

func (track *Track) Save() error

Jump to

Keyboard shortcuts

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