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

This commit is contained in:
upperstream
2016-07-17 08:16:53 +10:00
committed by David Howden
parent ae005145bc
commit abfb4860c4
+2
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