musicmgr

package
v0.0.0-...-12d5dd7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2016 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

Package musicmgr controls the tags in the music files. The tools include tools to read the different Tags in the music files.

Package musicmgr controls the tags in the music files. The tools include tools to read the different Tags in the music files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetMp3Tags

func SetMp3Tags(artist string, album string, title string, songPath string) error

SetMp3Tags updates the Artist, Album and Title tags with new values in the song MP3 file.

Types

type FileTags

type FileTags struct {
	Title  string
	Artist string
	Album  string
}

FileTags defines the tags found in a specific music file.

func GetMp3Tags

func GetMp3Tags(path string) (error, FileTags)

GetMp3Tags returns a FileTags struct with all the information obtained from the tags in the MP3 file. Includes the Artist, Album and Song and defines default values if the values are missing. If the tags are missing, the default values will be stored on the file. If the tags are obtained correctly the first return value will be nil.

Jump to

Keyboard shortcuts

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