From abfb4860c42f2c149e8c7471efe6c5d01eb4859c Mon Sep 17 00:00:00 2001 From: upperstream Date: Sat, 9 Jul 2016 18:02:50 +0900 Subject: [PATCH] Fix: metadataID3v1 did not set the value for "comment" key unless the tag is ID3v1.1. --- id3v1.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/id3v1.go b/id3v1.go index 00ad891..c203eb1 100644 --- a/id3v1.go +++ b/id3v1.go @@ -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