Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
USLT option listed but not supported. #306
Hi there, I tried adding lyrics to an mp3 file, but it wasn’t supported.
Could you please add support for it? Also please consider adding said tag from a file, since lyrics are rather clumsy to add from the command line.
I made it work the same as COMM for now as I'd like to avoid adding more variations argument formats. If you have more complex use cases like reading from files I'd recommend writing a Python script.
import sys from mutagen import MutagenError from mutagen.id3 import ID3, USLT, ID3NoHeaderError try: tags = ID3(sys.argv) except ID3NoHeaderError: tags = ID3() with open(sys.argv, "rb") as h: text = h.read().decode("utf-8") tags.delall("USLT") tags.add(USLT(text=text, lang="eng", desc="")) tags.save(sys.argv)