Skip to content

Commit

Permalink
Fix: metadataID3v1 did not set the value for "comment" key unless the…
Browse files Browse the repository at this point in the history
… tag is ID3v1.1.
  • Loading branch information
upperstream authored and dhowden committed Jul 16, 2016
1 parent ae00514 commit abfb486
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions id3v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abfb486

Please sign in to comment.