kopia lustrzana https://github.com/jcs/id3-go
Remove redundant contentDescriptor field
rodzic
36b1c22cce
commit
9ca13c7ec0
18
frame.go
18
frame.go
|
@ -232,8 +232,7 @@ func (f DescTextFrame) Bytes() []byte {
|
|||
type UnsynchTextFrame struct {
|
||||
FrameHead
|
||||
DescTextFrame
|
||||
language string
|
||||
contentDescriptor string
|
||||
language string
|
||||
}
|
||||
|
||||
func NewUnsynchTextFrame(head FrameHead, data []byte) Framer {
|
||||
|
@ -274,21 +273,6 @@ func (f *UnsynchTextFrame) SetLanguage(language string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (f UnsynchTextFrame) ContentDescriptor() string {
|
||||
return f.contentDescriptor
|
||||
}
|
||||
|
||||
func (f *UnsynchTextFrame) SetContentDescriptor(contentDescriptor string) error {
|
||||
diff, err := encodedDiff(f.encoding, contentDescriptor, f.contentDescriptor)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
f.size += int32(diff)
|
||||
f.contentDescriptor = contentDescriptor
|
||||
return nil
|
||||
}
|
||||
|
||||
func (f UnsynchTextFrame) Bytes() []byte {
|
||||
bytes := make([]byte, f.Size())
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue