mp3meta

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 13 Imported by: 1

README

MP3META

Coverage Status

mp3Meta is an adapter for Bogem's id3v2, licensed under the MIT license, link in Acknowledgements. This library provides a common interface that is used by my AudioMeta v3 library to read and write MP3 related metadata.

Acknowledgements

  • id3v2 - Bogem's id3v2 library is the magic behind the mp3 portion of AudioMeta v3. Thank you Bogem for this amazingly useful lib.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Parts of this project include third-party libraries under the MIT license. See the LICENSE file for details.

AudioMeta v3

MP4Meta

OGGMeta

FLACMeta

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveMP3

func SaveMP3(tag *MP3Tag, w io.Writer) error

Types

type MP3Tag

type MP3Tag struct {
	Album             string
	CoverArt          *image.Image
	AlbumArtist       string
	Artist            string
	BPM               string
	Composer          string //multiple seperated by /
	Copyright         string //must begin with year yyyy and a space
	Date              string //limit 4 char DDMM
	DiscNumber        int    //TPOS
	DiscNumberString  string
	DiscTotal         int
	EncodedBy         string
	Genre             string
	ISRC              string
	Language          string
	Length            string //length in millisecs
	Lyricist          string //multiple seperated by /
	Title             string
	TrackNumber       int
	TrackNumberString string
	TrackTotal        int
	Publisher         string
	SubTitle          string
	Year              string
	// contains filtered or unexported fields
}

func ParseMP3

func ParseMP3(r io.ReadSeeker) (*MP3Tag, error)

func (*MP3Tag) ClearAllTags

func (m *MP3Tag) ClearAllTags()

func (*MP3Tag) GetAlbum

func (t *MP3Tag) GetAlbum() string

func (*MP3Tag) GetAlbumArtist

func (t *MP3Tag) GetAlbumArtist() string

func (*MP3Tag) GetArtist

func (t *MP3Tag) GetArtist() string

func (*MP3Tag) GetBPM

func (t *MP3Tag) GetBPM() int

func (*MP3Tag) GetComposer

func (t *MP3Tag) GetComposer() string

func (*MP3Tag) GetCopyright

func (t *MP3Tag) GetCopyright() string

func (*MP3Tag) GetCoverArt

func (t *MP3Tag) GetCoverArt() *image.Image

func (*MP3Tag) GetDate

func (t *MP3Tag) GetDate() string

func (*MP3Tag) GetDiscNumber

func (t *MP3Tag) GetDiscNumber() int

func (*MP3Tag) GetDiscTotal

func (t *MP3Tag) GetDiscTotal() int

func (*MP3Tag) GetEncoder

func (t *MP3Tag) GetEncoder() string

func (*MP3Tag) GetGenre

func (t *MP3Tag) GetGenre() string

func (*MP3Tag) GetISRC

func (t *MP3Tag) GetISRC() string

func (*MP3Tag) GetLanguage

func (t *MP3Tag) GetLanguage() string

func (*MP3Tag) GetLength

func (t *MP3Tag) GetLength() string

func (*MP3Tag) GetLyricist

func (t *MP3Tag) GetLyricist() string

func (*MP3Tag) GetPublisher

func (t *MP3Tag) GetPublisher() string

func (*MP3Tag) GetSubTitle

func (t *MP3Tag) GetSubTitle() string

func (*MP3Tag) GetTitle

func (t *MP3Tag) GetTitle() string

func (*MP3Tag) GetTrackNumber

func (t *MP3Tag) GetTrackNumber() int

func (*MP3Tag) GetTrackTotal

func (t *MP3Tag) GetTrackTotal() int

func (*MP3Tag) GetYear

func (t *MP3Tag) GetYear() int

func (*MP3Tag) Save

func (t *MP3Tag) Save(w io.Writer) error

func (*MP3Tag) SetAlbum

func (t *MP3Tag) SetAlbum(album string)

func (*MP3Tag) SetAlbumArtist

func (t *MP3Tag) SetAlbumArtist(albumArtist string)

func (*MP3Tag) SetArtist

func (t *MP3Tag) SetArtist(artist string)

func (*MP3Tag) SetBPM

func (t *MP3Tag) SetBPM(bpm int)

func (*MP3Tag) SetComposer

func (t *MP3Tag) SetComposer(composer string)

func (*MP3Tag) SetCopyright

func (t *MP3Tag) SetCopyright(copyright string)

func (*MP3Tag) SetCoverArt

func (t *MP3Tag) SetCoverArt(coverArt *image.Image)

func (*MP3Tag) SetDate

func (t *MP3Tag) SetDate(date string)

func (*MP3Tag) SetDiscNumber

func (t *MP3Tag) SetDiscNumber(discNumber int)

func (*MP3Tag) SetDiscTotal

func (t *MP3Tag) SetDiscTotal(discTotal int)

func (*MP3Tag) SetEncoder

func (t *MP3Tag) SetEncoder(encoder string)

func (*MP3Tag) SetGenre

func (t *MP3Tag) SetGenre(genre string)

func (*MP3Tag) SetISRC

func (t *MP3Tag) SetISRC(isrc string)

func (*MP3Tag) SetLanguage

func (t *MP3Tag) SetLanguage(language string)

func (*MP3Tag) SetLength

func (t *MP3Tag) SetLength(length string)

func (*MP3Tag) SetLyricist

func (t *MP3Tag) SetLyricist(lyricist string)

func (*MP3Tag) SetPublisher

func (t *MP3Tag) SetPublisher(publisher string)

func (*MP3Tag) SetSubTitle

func (t *MP3Tag) SetSubTitle(subTitle string)

func (*MP3Tag) SetTitle

func (t *MP3Tag) SetTitle(title string)

func (*MP3Tag) SetTrackNumber

func (t *MP3Tag) SetTrackNumber(trackNumber int)

func (*MP3Tag) SetTrackTotal

func (t *MP3Tag) SetTrackTotal(trackTotal int)

func (*MP3Tag) SetYear

func (t *MP3Tag) SetYear(year int)

Jump to

Keyboard shortcuts

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