This allows to get the image from the chapter, useful for podcasts.
chapters := tag.GetFrames(tag.CommonID("Chapters"))
for _, f := range chapters {
chapter, ok := f.(id3v2.ChapterFrame)
if !ok {
log.Fatal("Couldn't get chapter")
}
fmt.Println(chapter.Title.Text)
fmt.Println(chapter.Artwork.MimeType)
// If a chapter doesn't have an image, use the default artwork
}
This allows to get the image from the chapter, useful for podcasts.