def metrolyrics(song):
translate = {URLESCAPE: '<STR_LIT>', '<STR_LIT:U+0020>': '<STR_LIT:->'}<EOL>title = song.title.lower()<EOL>title = normalize(title, translate)<EOL>title = re.sub(r'<STR_LIT>', '<STR_LIT:->', title)<EOL>artist = song.artist.lower()<EOL>artist = normalize(artist, translate)<EOL>artist = re.sub(r'<STR_LIT>', '<STR_LIT:->', artist)<EOL>url = '<STR_LIT>'.format(title, artist)<EOL>soup = get_url(url)<EOL>body = soup.find(id='<STR_LIT>')<EOL>if body is None:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>text = '<STR_LIT>'<EOL>verses = body.find_all('<STR_LIT:p>')<EOL>for verse in verses:<EOL><INDENT>text += verse.get_text().strip()<EOL>text += '<STR_LIT>'<EOL><DEDENT>return text.strip()<EOL>
Returns the lyrics found in metrolyrics for the specified mp3 file or an
empty string if not found.