scanner

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyScanning = errors.New("already scanning")
	ErrReadingTags     = errors.New("could not read tags")
)

Functions

func ParseMulti added in v0.16.3

func ParseMulti(setting MultiValueSetting, values []string, value string) []string

Types

type MultiValueMode added in v0.16.0

type MultiValueMode uint8
const (
	None MultiValueMode = iota
	Delim
	Multi
)

type MultiValueSetting added in v0.16.0

type MultiValueSetting struct {
	Mode  MultiValueMode
	Delim string
}

type ScanOptions added in v0.15.0

type ScanOptions struct {
	IsFull bool
}

type Scanner

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

func New

func New(musicDirs []string, db *db.DB, multiValueSettings map[Tag]MultiValueSetting, tagReader tagcommon.Reader, excludePattern string) *Scanner

func (*Scanner) ExecuteWatch added in v0.15.0

func (s *Scanner) ExecuteWatch(ctx context.Context) error

func (*Scanner) IsScanning added in v0.15.0

func (s *Scanner) IsScanning() bool

func (*Scanner) ScanAndClean added in v0.15.0

func (s *Scanner) ScanAndClean(opts ScanOptions) (*State, error)

func (*Scanner) StartScanning added in v0.15.0

func (s *Scanner) StartScanning() bool

func (*Scanner) StopScanning added in v0.15.0

func (s *Scanner) StopScanning()

type State added in v0.16.3

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

func (*State) AlbumsMissing added in v0.16.3

func (s *State) AlbumsMissing() int

func (*State) ArtistsMissing added in v0.16.3

func (s *State) ArtistsMissing() int

func (*State) GenresMissing added in v0.16.3

func (s *State) GenresMissing() int

func (*State) SeenAlbums added in v0.16.3

func (s *State) SeenAlbums() int

func (*State) SeenTracks added in v0.16.3

func (s *State) SeenTracks() int

func (*State) SeenTracksNew added in v0.16.3

func (s *State) SeenTracksNew() int

func (*State) TracksMissing added in v0.16.3

func (s *State) TracksMissing() int

type Tag added in v0.16.0

type Tag uint8
const (
	Genre Tag = iota
	Artist
	AlbumArtist
)

Jump to

Keyboard shortcuts

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