v1

package
v0.0.0-...-8b1d50a Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ENHANCEDIDENTIFIER string = "TAG+"
View Source
const ENHANCEDSIZE int = 227
View Source
const IDENTIFIER string = "TAG"
View Source
const INVALIDGENRE int = 255
View Source
const TAGSIZE int = 128
View Source
const V1_0 string = "ID3v1.0"
View Source
const V1_1 string = "ID3v1.1"

Variables

View Source
var EnhancedSpeed = map[int]string{
	0: "Unset",
	1: "Slow",
	2: "Medium",
	3: "Fast",
	4: "Hardcore",
}
View Source
var ErrDoesNotUseID3v1 error = fmt.Errorf("does not use ID3v1")

Functions

This section is empty.

Types

type EnhancedID3v1Tag

type EnhancedID3v1Tag struct {
	SongName  string
	Artist    string
	Album     string
	Speed     string
	Genre     string
	StartTime string
	EndTime   string
}

type ID3v1Tag

type ID3v1Tag struct {
	SongName       string
	Artist         string
	Album          string
	Year           int
	Comment        string
	Track          uint8 // basically a byte, but converted to int for convenience
	Genre          string
	HasEnhancedTag bool
	EnhancedTag    EnhancedID3v1Tag
	// contains filtered or unexported fields
}

func Readv1Tag

func Readv1Tag(rs io.ReadSeeker) (*ID3v1Tag, error)

Retrieves ID3v1 field values from rs.

func (*ID3v1Tag) WriteToFile

func (tag *ID3v1Tag) WriteToFile(f *os.File) error

Checks for existing ID3v1 or ID3v1.1 tag in file, if present - removes it and replaces with provided tag

Jump to

Keyboard shortcuts

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