def metalarchives(song):
artist = normalize(song.artist)<EOL>title = normalize(song.title)<EOL>url = '<STR_LIT>'<EOL>url += f'<STR_LIT>'<EOL>soup = get_url(url, parser='<STR_LIT>')<EOL>if not soup:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>song_id_re = re.compile(r'<STR_LIT>')<EOL>ids = set(re.search(song_id_re, a) for sub in soup['<STR_LIT>'] for a in sub)<EOL>if not ids:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if None in ids:<EOL><INDENT>ids.remove(None)<EOL><DEDENT>ids = map(lambda a: a.group(<NUM_LIT:1>), ids)<EOL>for song_id in ids:<EOL><INDENT>url = '<STR_LIT>'<EOL>lyrics = get_url(url.format(song_id), parser='<STR_LIT:html>')<EOL>lyrics = lyrics.get_text().strip()<EOL>if not re.search('<STR_LIT>', lyrics):<EOL><INDENT>return lyrics<EOL><DEDENT><DEDENT>return '<STR_LIT>'<EOL>
Returns the lyrics found in MetalArchives for the specified mp3 file or an
empty string if not found.