It's hard for me to understand the V2 ID3 tag format. I just want to get the 'Genre' ID3 tag of an MP3 file, but id3v2 returns more information than I need, and I donβt understand what this data represents.
For example, I use the following bash code:
id3v2 -l "$FILE" | grep -i "content type"
Which returns something in the lines:
TCON (Content type): Jazz (8)
Actually, I just want to know if itβs safe for me to think that it will always be a format, and is it safe for me to do the following?
id3v2 -l "$FILE" | grep -i "content type" | sed "s/^.*: //" | sed "s/ (.*$//"
(which will lead to jazz.)
I am trying to find the best way to get the ID3 tag 'Genre'. Thanks so much for any suggestions.
source share