metadata

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoverSize56   = 56
	CoverSize250  = 250
	CoverSize500  = 500
	CoverSize1000 = 1000
	CoverSize1500 = 1500
	CoverSize1800 = 1800
)

Valid cover sizes

Variables

This section is empty.

Functions

func AddTrackTags

func AddTrackTags(trackBuffer []byte, track types.TrackType, albumCoverSize int) ([]byte, error)

AddTrackTags adds metadata to the track buffer (MP3 or FLAC) based on track and album information.

func DownloadAlbumCover

func DownloadAlbumCover(albumPicture string, albumCoverSize int) ([]byte, error)

DownloadAlbumCover downloads an album cover based on the provided album picture hash and cover size.

func WriteMetadataFlac

func WriteMetadataFlac(buffer []byte, track types.TrackType, album *types.AlbumTypePublicApi, dimension int, cover []byte) ([]byte, error)

func WriteMetadataMp3

func WriteMetadataMp3(buffer []byte, track types.TrackType, album *types.AlbumTypePublicApi, cover []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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