Skip to content

Instantly share code, notes, and snippets.

@res0nat0r
Created February 25, 2012 22:44
Show Gist options
  • Save res0nat0r/1911238 to your computer and use it in GitHub Desktop.
Save res0nat0r/1911238 to your computer and use it in GitHub Desktop.
Embed lyrics from file to mp3
#!/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