rclaudio: process COMM==lang= tags from mutagen into comments

This commit is contained in:
Jean-Francois Dockes 2022-08-04 16:11:30 +02:00
parent 2e53989d8f
commit e43e223ef8

View File

@ -351,6 +351,11 @@ class AudioTagExtractor(RclBaseHandler):
# Metadata tags. The names vary depending on the file type. We
# just have a big translation dictionary for all
for tag,val in mutf.items():
#print(f"TAG {tag} VAL {val}", file=sys.stderr)
# Mutagen sends out COMM==eng= with tag COMM::eng We don't know what to do with the
# language (or possible other attributes), so get rid of it for now:
if tag.find("COMM::") == 0:
tag = "COMM"
if tag.find('TXXX:') == 0:
tag = tag[5:].upper()
elif tag.find('TXX:') == 0: