id3v2 icon indicating copy to clipboard operation
id3v2 copied to clipboard

Add chapter picture frame

Open AbeEstrada opened this issue 2 years ago • 0 comments

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
}

AbeEstrada avatar Sep 07 '23 04:09 AbeEstrada