From e43e223ef81c3e271d1f852791ed7d89724ebd2e Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 4 Aug 2022 16:11:30 +0200 Subject: [PATCH] rclaudio: process COMM==lang= tags from mutagen into comments --- src/filters/rclaudio.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/filters/rclaudio.py b/src/filters/rclaudio.py index 2e153110..3ca10285 100755 --- a/src/filters/rclaudio.py +++ b/src/filters/rclaudio.py @@ -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: