From 5e368ba94d1ea2efda7f874896446dc3bd72199e Mon Sep 17 00:00:00 2001 From: David Howden Date: Thu, 14 Sep 2017 08:43:05 +1000 Subject: [PATCH] Fix parsing of year in ID3v2.4 Fixes #27 --- id3v2metadata.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/id3v2metadata.go b/id3v2metadata.go index 9662efc..4c67add 100644 --- a/id3v2metadata.go +++ b/id3v2metadata.go @@ -20,7 +20,12 @@ func (f frameNames) Name(s string, fm Format) string { switch fm { case ID3v2_2: return l[0] - case ID3v2_3, ID3v2_4: + case ID3v2_3: + return l[1] + case ID3v2_4: + if s == "year" { + return "TDRC" + } return l[1] } return ""