Merge pull request #9 from xhenner/allid3v2
Fix a bug in Sum() and add all id3frames in Raw()
This commit is contained in:
commit
ffefb50681
2
id3v2.go
2
id3v2.go
@ -266,6 +266,8 @@ func readID3v2Frames(r io.Reader, h *ID3v2Header) (map[string]interface{}, error
|
||||
return nil, err
|
||||
}
|
||||
result[rawName] = p
|
||||
default:
|
||||
result[rawName] = b
|
||||
}
|
||||
|
||||
continue
|
||||
|
2
sum.go
2
sum.go
@ -141,7 +141,7 @@ func SumID3v2(r io.ReadSeeker) (string, error) {
|
||||
return "", fmt.Errorf("error reading ID3v2 header: %v", err)
|
||||
}
|
||||
|
||||
_, err = r.Seek(int64(h.Size), os.SEEK_SET)
|
||||
_, err = r.Seek(int64(h.Size)+10, os.SEEK_SET)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("error seeking to end of ID3V2 header: %v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user