id3v2 v1.1.1 Release Notes

Release Date: 2018-09-27 // about 3 years ago
    • 🔦 Expose Tag's default encoding #35 7e43476

      // DefaultEncoding returns default encoding of tag.// Default encoding is used in methods (e.g. SetArtist, SetAlbum ...) for// setting text frames without the explicit providing of encoding.func (tag *Tag) DefaultEncoding() Encoding { return tag.defaultEncoding}// SetDefaultEncoding sets default encoding for tag.// Default encoding is used in methods (e.g. SetArtist, SetAlbum ...) for// setting text frames without explicit providing encoding.func (tag *Tag) SetDefaultEncoding(encoding Encoding) { tag.defaultEncoding = encoding}

    • ➕ Add AddTextFrame method 7e43476

      // AddTextFrame creates the text frame with provided encoding and text// and adds to tag.func (tag *Tag) AddTextFrame(id string, encoding Encoding, text string) { tag.AddFrame(id, TextFrame{Encoding: encoding, Text: text}) }