Skip to content

Instantly share code, notes, and snippets.

View indiependente's full-sized avatar
:octocat:
Building stuff in Go

Francesco Farina indiependente

:octocat:
Building stuff in Go
View GitHub Profile
@indiependente
indiependente / addlrc.py
Last active August 29, 2015 14:20 — forked from scturtle/addlrc.py
import eyed3
import re
import glob
def get_lyric(lrc):
text = open(lrc).read()
text = re.sub(r'(?:\[.*\])+', '', text).strip()
text = map(lambda l: l.strip(), text.split('\n'))
ans = []
for l in text: