From be8e2d1a3ca74730a497bcb3cd820d868a03b66c Mon Sep 17 00:00:00 2001 From: Till Toenshoff Date: Wed, 13 Oct 2021 05:57:28 +0200 Subject: [PATCH] fix: prevent unfortunate PictureFrame sequencing --- picture_frame.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/picture_frame.go b/picture_frame.go index 4c9059e..870054a 100644 --- a/picture_frame.go +++ b/picture_frame.go @@ -5,6 +5,7 @@ package id3v2 import ( + "fmt" "io" ) @@ -22,7 +23,7 @@ type PictureFrame struct { } func (pf PictureFrame) UniqueIdentifier() string { - return pf.Description + return fmt.Sprintf("%02X%s", pf.PictureType, pf.Description) } func (pf PictureFrame) Size() int {