kopia lustrzana https://github.com/jcs/id3-go
Create new frame on common map types if none exist
rodzic
93894f2ae9
commit
3dac62c7d0
|
@ -271,6 +271,8 @@ func (t Tag) textFrameText(ft FrameType) string {
|
|||
func (t *Tag) setTextFrameText(ft FrameType, text string) {
|
||||
if frame := t.textFrame(ft); frame != nil {
|
||||
frame.SetText(text)
|
||||
} else {
|
||||
t.AddFrames(NewTextFrame(ft, text))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue