Fix: metadataID3v1 did not set the value for "comment" key unless the tag is ID3v1.1.

This commit is contained in:
upperstream 2016-07-09 18:02:50 +09:00 committed by David Howden
parent ae005145bc
commit abfb4860c4

View File

@ -85,6 +85,8 @@ func ReadID3v1Tags(r io.ReadSeeker) (Metadata, error) {
if commentBytes[28] == 0 {
comment = strings.TrimSpace(string(commentBytes[:28]))
track = int(commentBytes[29])
} else {
comment = strings.TrimSpace(string(commentBytes))
}
var genre string