Documentation ¶
Index ¶
- Constants
- func ContainsMusic(directoryPath string) bool
- func GetAllFLACs(directoryPath string) []string
- func GetAllPlaylists(directoryPath string) []string
- func GetFirstFLACFound(directoryPath string) string
- type Release
- func (r *Release) Analyze() error
- func (r *Release) CheckEncoding() error
- func (r *Release) CheckTags() error
- func (r *Release) CleanTags(removeAllArt bool) error
- func (r *Release) GenerateSpectrograms(title string) error
- func (r *Release) Recompress() error
- func (r *Release) TranscodeTo320(cbr320FolderName string) error
- func (r *Release) TranscodeToV0(v0FolderName string) error
- type Track
- type TrackTags
Constants ¶
View Source
const ( FlacExt = ".flac" Mp3Ext = ".mp3" M3uExt = ".m3u" OpusExt = ".opus" JpgExt = ".jpg" )
View Source
const (
AdditionalMetadataDir = "Metadata"
)
Variables ¶
This section is empty.
Functions ¶
func ContainsMusic ¶
ContainsMusic returns true if it contains mp3 or flac files.
func GetAllFLACs ¶
GetAllFLACs returns all FLAC files found in a directory
func GetAllPlaylists ¶ added in v0.12.0
GetAllPlaylists returns all m3u files found in a directory
func GetFirstFLACFound ¶
GetFirstFLACFound returns the first FLAC file found in a directory
Types ¶
type Release ¶ added in v0.16.0
type Release struct { Path string Flacs []*Track Cover string OtherFiles []string Ignored []string }
func (*Release) CheckEncoding ¶ added in v0.18.0
func (*Release) GenerateSpectrograms ¶ added in v0.16.0
GenerateSpectrograms for all FLACs
func (*Release) TranscodeTo320 ¶ added in v0.18.0
func (*Release) TranscodeToV0 ¶ added in v0.18.0
type Track ¶ added in v0.18.0
type Track struct { Path string `json:"-"` Filename string `json:"filename"` MD5 string `json:"md5"` BitDepth string `json:"bit_depth"` SampleRate string `json:"sample_rate"` TotalSamples string `json:"total_samples"` Duration string `json:"duration"` Fingerprint string `json:"fingerprint,omitempty"` Tags *TrackTags `json:"tags"` }
func (*Track) HasMinimalTags ¶ added in v0.18.0
type TrackTags ¶ added in v0.18.0
type TrackTags struct { Number string TotalTracks string DiscNumber string Artist string AlbumArtist string Title string Description string Year string Genre string Performer string Composer string Album string Label string OtherTags map[string]string }
func NewTrackMetadata ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.