Documentation ¶
Index ¶
- Constants
- Variables
- 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) Check() error
- func (r *Release) CheckAlbumArtist() error
- func (r *Release) CheckCompression() error
- func (r *Release) CheckConsistentBitDepth() (bool, string)
- func (r *Release) CheckConsistentSampleRate() (bool, string)
- func (r *Release) CheckConsistentTags() error
- func (r *Release) CheckDiscNumbersInFilenames() bool
- func (r *Release) CheckEncoding() error
- func (r *Release) CheckFilenameContainsStartOfTitle(minSize int) bool
- func (r *Release) CheckFilenameOrder(withDisc bool) (bool, error)
- func (r *Release) CheckForID3v1Tags() error
- func (r *Release) CheckForMissingTracks() error
- func (r *Release) CheckMaxCoverAndPaddingSize() int
- func (r *Release) CheckMaxMetadataSize(maxSize int) []error
- func (r *Release) CheckMinMaxBitrates() (int, int)
- func (r *Release) CheckMinimalTags() []error
- func (r *Release) CheckMultiDiscOrganization() error
- func (r *Release) CheckTrackNumbersInFilenames() bool
- func (r *Release) CheckVendor() error
- func (r *Release) ClearMemory()
- func (r *Release) ClearMetadata() error
- func (r *Release) EmbedArtwork(cover string, maxSizeKb int) error
- func (r *Release) GenerateCombinedSpectrogram(verbose bool) (string, error)
- func (r *Release) GenerateSpectrograms(title string, verbose bool) ([]string, error)
- func (r *Release) GetRawTags() string
- func (r *Release) Has24bitTracks() bool
- func (r *Release) HasCover() bool
- func (r *Release) HasTracksInSubfolders() bool
- func (r *Release) IsMultiDisc() (bool, error)
- func (r Release) NumberOfDiscs() int
- func (r *Release) ParseFiles() error
- func (r *Release) Recompress() error
- func (r *Release) TranscodeTo320(cbr320FolderName string) error
- func (r *Release) TranscodeToV0(v0FolderName string) error
Constants ¶
const ( FlacExt = ".flac" Mp3Ext = ".mp3" M3uExt = ".m3u" OpusExt = ".opus" JpgExt = ".jpg" WavExt = ".wav" DefaultCover = "cover.jpg" )
const (
AdditionalMetadataDir = "Metadata"
)
Variables ¶
var ( ErrorMaxLengthExceeded = errors.New("max length of path exceeds 180 characters") ErrorNoCover = errors.New("no cover found") )
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
Release struct to manipulate a folder containing FLAC files and a cover.
func NewWithExternalMetadata ¶ added in v0.19.4
func (*Release) CheckAlbumArtist ¶ added in v0.28.0
func (*Release) CheckCompression ¶ added in v0.25.0
CheckCompression in the first flac file, to detect uncompressed flacs.
func (*Release) CheckConsistentBitDepth ¶ added in v0.25.0
CheckConsistentBitDepth among tracks.
func (*Release) CheckConsistentSampleRate ¶ added in v0.25.0
CheckConsistentSampleRate among tracks.
func (*Release) CheckConsistentTags ¶ added in v0.25.0
func (*Release) CheckDiscNumbersInFilenames ¶ added in v0.26.0
CheckDiscNumbersInFilenames among all tracks.
func (*Release) CheckEncoding ¶ added in v0.18.0
CheckEncoding will return an error if the flac encoding (bit depth/Hz) varies among the Release's FLACS.
func (*Release) CheckFilenameContainsStartOfTitle ¶ added in v0.25.0
CheckFilenameContainsStartOfTitle among all tracks.
func (*Release) CheckFilenameOrder ¶ added in v0.26.0
func (*Release) CheckForID3v1Tags ¶ added in v0.32.0
CheckForID3v1Tags in the first flac file.
func (*Release) CheckForMissingTracks ¶ added in v0.42.0
func (*Release) CheckMaxCoverAndPaddingSize ¶ added in v0.32.0
CheckMaxCoverAndPaddingSize among all tracks.
func (*Release) CheckMaxMetadataSize ¶ added in v0.32.0
CheckMaxMetadataSize among all tracks.
func (*Release) CheckMinMaxBitrates ¶ added in v0.25.0
func (*Release) CheckMinimalTags ¶ added in v0.38.3
CheckMinimalTags from FLACs.
func (*Release) CheckMultiDiscOrganization ¶ added in v0.26.0
CheckMultiDiscOrganization checks if multi-disc release are using subfolder or have the disc number in the filenames.
func (*Release) CheckTrackNumbersInFilenames ¶ added in v0.25.0
CheckTrackNumbersInFilenames among all tracks.
func (*Release) CheckVendor ¶ added in v0.27.0
func (*Release) ClearMemory ¶ added in v0.39.4
func (r *Release) ClearMemory()
ClearMemory from FLACs content.
func (*Release) ClearMetadata ¶ added in v0.31.0
ClearMetadata from FLACs.
func (*Release) EmbedArtwork ¶ added in v0.23.0
EmbedArtwork in all FLACs.
func (*Release) GenerateCombinedSpectrogram ¶ added in v0.18.2
GenerateCombinedSpectrogram for all FLACs This generates slices of combinedSliceWindowS seconds centered around the middle of each song, then combines all slices in a single png. It should allow seeing at a glance of a single file is something looks like a lossy mastered flac.
func (*Release) GenerateSpectrograms ¶ added in v0.16.0
GenerateSpectrograms for all FLACs.
func (*Release) GetRawTags ¶ added in v0.37.3
func (*Release) Has24bitTracks ¶ added in v0.23.2
Has24bitTracks returns true if at least one track is 24bit.
func (*Release) HasTracksInSubfolders ¶ added in v0.28.0
func (*Release) IsMultiDisc ¶ added in v0.28.0
func (Release) NumberOfDiscs ¶ added in v0.19.5
NumberOfDiscs in the release.
func (*Release) ParseFiles ¶ added in v0.25.0
func (*Release) Recompress ¶ added in v0.16.0
Recompress FLACs.
func (*Release) TranscodeTo320 ¶ added in v0.18.0
TranscodeTo320 a given Release's FLAC files.
func (*Release) TranscodeToV0 ¶ added in v0.18.0
TranscodeToV0 a given Release's FLAC files.