Created
February 25, 2012 22:44
-
-
Save res0nat0r/1911238 to your computer and use it in GitHub Desktop.
Embed lyrics from file to mp3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import os | |
import eyeD3 | |
tag = eyeD3.Tag() | |
for arg in sys.argv[1:]: | |
tag.link(os.path.abspath(arg)) | |
lyrics = open(os.path.splitext(os.path.abspath(arg))[0] + ".txt", "r").read() | |
tag.addLyrics(lyrics) | |
tag.update() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment