Documentation
¶
Index ¶
- func SanitizeFilename(s string) string
- type Album
- type Artist
- type Library
- func (l *Library) FileMarkStored(t *Track, filename string) error
- func (l *Library) GetAlbumKey(t *Track) string
- func (l *Library) GetArtistKey(t *Track) string
- func (l *Library) GetTrackKey(t *Track) string
- func (l *Library) MarkStored(t *Track)
- func (l *Library) Stored(t *Track) bool
- func (l *Library) String() string
- func (l *Library) UnmarkStored(t *Track)
- func (l *Library) Watch(ctx context.Context) error
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeFilename ¶ added in v0.1.4
Ensure there are no characters in a string that would be problematic for a filename, replaces them with underscore characters (_).
Types ¶
type Album ¶
type Library ¶
func LoadLibrary ¶
func (*Library) FileMarkStored ¶
Unhide the file now that its finished
func (*Library) GetAlbumKey ¶ added in v0.1.8
func (*Library) GetArtistKey ¶ added in v0.1.8
func (*Library) GetTrackKey ¶ added in v0.1.8
func (*Library) MarkStored ¶
func (*Library) UnmarkStored ¶
type Track ¶
type Track struct {
Title string
Artist string
AlbumArtist string
Album string
TrackNumber int32
DiscNumber int32
Length time.Duration
ArtURL string
URL string
TrackID string
AutoRating float64
Format string
MediaPlayer string
}
func (*Track) FancyString ¶ added in v0.1.1
func (*Track) IsSameTrackAs ¶ added in v0.1.1
func (*Track) UpdateTrack ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.